/* =========================
   Linear View Base
========================= */
.linear-view-page,
.linear-detail-page {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 18%, rgba(131, 118, 197, 0.16), transparent 34%),
    radial-gradient(circle at 84% 20%, rgba(88, 170, 112, 0.17), transparent 32%),
    radial-gradient(circle at 78% 86%, rgba(230, 160, 95, 0.14), transparent 34%),
    linear-gradient(145deg, #f8fafc 0%, #f1f6f3 48%, #f7f5fb 100%);
  margin-bottom: 0;
  padding-top: 92px;
  min-height: 100vh;
}

.linear-view-page::before,
.linear-detail-page::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.42;
  background-image: radial-gradient(circle, rgba(75, 94, 104, 0.22) 1px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 100%);
}

#footer-placeholder {
  margin-top: 0;
}

.linear-detail-page > .container:last-child,
.linear-view-page > .container:last-child {
  padding-bottom: 0 !important;
}

.linear-hero {
  background: linear-gradient(135deg, #f4fbf7 0%, #fbfefd 100%);
  border: 1px solid #d8ece1;
}

.green-text {
  color: #2ecc71;
}

/* =========================
   Top Navigation
========================= */
.linear-topnav-wrapper {
  z-index: 1020;
  top: 12px;
  padding-bottom: 1rem;
  background: linear-gradient(to bottom, rgba(248,251,249,0.96), rgba(248,251,249,0.82), rgba(248,251,249,0));
  backdrop-filter: blur(6px);
}

.linear-topnav {
  background: rgba(255,255,255,0.94);
  border: 1px solid #dfeae4;
  padding: 1rem 1rem 0.9rem 1rem;
}

.linear-main-nav,
.linear-subnav {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.linear-main-nav {
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid #edf3ef;
}

.linear-subnav {
  padding-bottom: 0.15rem;
}

.linear-main-link,
.linear-sub-link {
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.linear-main-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: #355447;
  background: #f5f8f6;
  border: 1px solid #e2ece6;
  font-weight: 600;
}

.linear-main-link:hover,
.linear-main-link.active {
  background: #e9f5ee;
  border-color: #bfdacb;
  color: #1f6d4f;
}

.linear-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: #e2f2e9;
  color: #1f7a56;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.linear-sub-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: #5d7268;
  background: #fbfdfc;
  border: 1px solid #edf3ef;
  font-size: 0.94rem;
}

.linear-sub-link:hover {
  background: #f1f8f4;
  border-color: #d8e9df;
  color: #2f7558;
}

/* =========================
   Cards
========================= */
.linear-card {
  border-radius: 1.4rem;
  background: linear-gradient(135deg, #f9fffb 0%, #f2f7f4 100%);
  border: 1px solid #dbe8e1;
  transition: all 0.22s ease;
  color: inherit;
}

.linear-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.85rem 1.8rem rgba(0,0,0,0.08);
  border-color: #bdd7c8;
}

.linear-view-page #learning-path .linear-card::before,
.r-strategy-card-grid .linear-card::before,
.initiative-card-grid .linear-card::before,
.regulation-overview-card-grid .linear-card::before,
.good-practice-card-grid .linear-card::before {
  content: "";
  display: block;
  aspect-ratio: 16 / 9;
  margin: -1.5rem -1.5rem 1.25rem;
  border-radius: 1.15rem 1.15rem 0.85rem 0.85rem;
  background:
    linear-gradient(180deg, rgba(23, 33, 29, 0.02), rgba(23, 33, 29, 0.16)),
    var(--card-image, url("../images/intro.PNG")) center / cover no-repeat;
}

.linear-card:focus-within {
  border-color: #8fc8aa;
  box-shadow: 0 0 0 0.18rem rgba(47, 143, 104, 0.16);
}

.good-practice-card-grid .linear-card {
  padding: 1.5rem !important;
}

.good-practice-card-grid .linear-card::before {
  aspect-ratio: 3 / 1;
  background:
    linear-gradient(180deg, rgba(23, 33, 29, 0.02), rgba(23, 33, 29, 0.08)),
    var(--card-image, url("../images/good-practices.png")) center / var(--card-image-size, contain) no-repeat #ffffff;
}

.regulation-overview-card-grid .linear-card::before {
  margin: -1.5rem -1.5rem 1.25rem;
  border-radius: 1.15rem 1.15rem 0.85rem 0.85rem;
}

.linear-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.linear-card-top .linear-card-number {
  margin-bottom: 0;
}

.linear-card-top i {
  color: #2f8f68;
  font-size: 1.35rem;
}

.linear-card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  height: 2.3rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: #e7f4ec;
  color: #237a57;
  font-weight: 700;
  margin-bottom: 1rem;
}

.linear-section-card {
  border-radius: 1.4rem;
  background: #ffffff;
  border: 1px solid #e1ebe5;
}

.linear-subcard {
  border-radius: 1.1rem;
  background: linear-gradient(135deg, #fbfefd 0%, #f3f8f5 100%);
  border: 1px solid #e2ece6;
  transition: all 0.2s ease;
}

.linear-subcard:hover {
  transform: translateY(-3px);
  border-color: #c8ddd0;
  box-shadow: 0 0.6rem 1.2rem rgba(0,0,0,0.06);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 2rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: #edf7f1;
  color: #247653;
  font-weight: 700;
  margin-bottom: 1rem;
}

.r-strategy-group {
  padding-top: 1.5rem;
}

.r-strategy-group + .r-strategy-group {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid #e2ece6;
}

.r-strategy-group-header {
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.r-strategy-group-header h3 {
  color: #17211d;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.r-strategy-group-header p {
  color: #5d7067;
  line-height: 1.65;
  margin-bottom: 0;
}

/* Optional existing line style */
.sep-line {
  width: 90px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dceee4 0%, #51a57c 50%, #dceee4 100%);
}

/* =========================
   Responsive
========================= */
@media (min-width: 992px) {
  .linear-view-page #learning-path .linear-card::before,
  .r-strategy-card-grid .linear-card::before,
  .initiative-card-grid .linear-card::before,
  .regulation-overview-card-grid .linear-card::before,
  .good-practice-card-grid .linear-card::before {
    margin: -3rem -3rem 1.5rem;
    border-radius: 1.15rem 1.15rem 0.85rem 0.85rem;
  }

  .good-practice-card-grid .linear-card::before {
    margin: -1.5rem -1.5rem 1.25rem;
  }

  .regulation-overview-card-grid .linear-card::before {
    margin: -1.5rem -1.5rem 1.25rem;
  }
}

@media (max-width: 991.98px) {
  .linear-view-page {
    padding-top: 84px;
  }

  .linear-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .linear-section-heading .btn {
    align-self: flex-start;
  }

  .linear-main-link {
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
  }

  .linear-sub-link {
    font-size: 0.9rem;
  }
}

@media (max-width: 767.98px) {
  .linear-view-page #learning-path .linear-card::before,
  .r-strategy-card-grid .linear-card::before,
  .initiative-card-grid .linear-card::before,
  .regulation-overview-card-grid .linear-card::before,
  .good-practice-card-grid .linear-card::before {
    margin: -1.5rem -1.5rem 1.25rem;
  }

  .linear-landing-hero {
    padding-top: 1rem;
  }

  .linear-landing-panel {
    border-radius: 14px;
  }

  .linear-hero-actions {
    flex-direction: column;
  }

  .linear-hero-actions .btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
  }

  .linear-hero-highlights {
    grid-template-columns: 1fr;
  }

  .linear-hero-highlights div {
    min-height: auto;
  }

  .linear-video-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .linear-topnav {
    border-radius: 1rem;
    padding: 0.85rem 0.85rem 0.7rem 0.85rem;
  }

  .linear-main-nav {
    padding-bottom: 0.7rem;
    margin-bottom: 0.7rem;
  }

  .linear-card,
  .linear-section-card {
    border-radius: 1.1rem;
  }

  .r-strategy-group {
    padding-top: 1rem;
  }

  .r-strategy-group + .r-strategy-group {
    margin-top: 2.25rem;
    padding-top: 2.25rem;
  }

  .r-strategy-group-header {
    margin-bottom: 1.25rem;
  }

}
.navbar .dropdown-menu {
  border-radius: 12px;
  border: 1px solid #e6ebe8;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  padding: 0.45rem 0;
}

.navbar .dropdown-item {
  padding: 0.55rem 1rem;
  color: #4f5f57;
}

.navbar .dropdown-item:hover {
  background-color: #f4f8f5;
  color: #2f8f68;
}

.navbar .nav-link.dropdown-toggle {
  display: flex;
  align-items: center;
  
}
.linear-detail-page {
  padding-top: 110px;
  min-height: 100vh;
}

.linear-detail-shell {
  border: 1px solid #e2ebe6;
}

.r-page-kicker,
.r-section-divider-label {
  letter-spacing: 0.08em;
}

.r-section-subtitle {
  max-width: 760px;
  margin: 0 auto;
}

.r-video-shell {
  max-width: 980px;
}

.r-video-card {
  background: linear-gradient(135deg, #f0f7f4 0%, #f9fffb 100%);
  border: 1px solid #d7efe3;
}

.r-video-frame {
  max-width: 860px;
}

.r-video-iframe {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.10);
}

.r-section-divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, #cfe9dc, transparent);
}

.r-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
  text-align: justify;
}

.r-text-justify {
  text-align: justify;
}

.r-fact-card,
.r-info-box {
  background: #f8fafb;
}

.r-fact-card {
  border: 1px solid #e3eeea;
}

.r-step-marker {
  width: 40px;
  height: 40px;
  background: #eaf5ef;
  color: #52a374;
}

.r-strategy-nav-btn {
  border-radius: 12px;
}

.r-strategy-nav-btn-disabled {
  background: #eef3f1;
  color: #9aa5a0;
  border-radius: 12px;
}

.r-accordion-item {
  border-radius: 14px;
  overflow: hidden;
}

.r-rounded-link {
  border-radius: 8px;
}

.r-content-image {
  width: 100%;
  max-width: 380px;
  border-radius: 16px;
  box-shadow: 0 4px 22px rgba(0, 128, 64, 0.12);
}

.r-recommendations {
  background: linear-gradient(135deg, #fbfefd 0%, #f6faf8 100%);
  border-color: #dcebe3 !important;
}

.r-recommendations-header {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #e2ebe6;
  text-align: left;
}

.r-recommendations-icon {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 2.4rem;
  align-items: center;
  justify-content: center;
  color: #237a57;
  background: rgba(46, 204, 113, 0.12);
  border-radius: 8px;
}

.r-recommendations-kicker {
  margin-bottom: 0.1rem;
  color: #237a57;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.r-recommendations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.r-recommendations-grid.is-single {
  grid-template-columns: 1fr;
}

.r-recommendation-card {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 210px;
  padding: 1rem 1rem 1.05rem;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  text-align: left;
  background: #fff;
  border: 1px solid #e2ebe6;
  border-radius: 8px;
}

.r-recommendation-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #2ecc71;
  content: "";
}

.r-recommendation-card-standard {
  background: #fff;
  border-color: #e2ebe6;
}

.r-recommendation-card-standard::before {
  background: #2ecc71;
}

.r-recommendation-card-top {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.r-recommendation-card-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  align-items: center;
  justify-content: center;
  color: #237a57;
  background: rgba(46, 204, 113, 0.11);
  border-radius: 8px;
}

.r-recommendation-card-standard .r-recommendation-card-icon {
  color: #237a57;
  background: rgba(46, 204, 113, 0.11);
}

.r-recommendation-badge {
  display: inline-flex;
  padding: 0.22rem 0.55rem;
  color: #237a57;
  background: rgba(46, 204, 113, 0.11);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.r-recommendation-card-standard .r-recommendation-badge {
  color: #237a57;
  background: rgba(46, 204, 113, 0.11);
}

.r-recommendation-title {
  margin-bottom: 0.55rem;
  color: #1f3328;
  font-size: 1rem;
  line-height: 1.35;
}

.r-recommendation-card p {
  margin-bottom: 1rem;
  color: #52645b;
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: left;
}

.r-recommendation-card .btn {
  margin-top: auto;
  border-radius: 8px;
}

.r-practice-box {
  background: #f0f7f4;
}

.practice-company-box {
  position: relative;
  padding: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, #fbfefd 0%, #f6faf8 100%);
  border: 1px solid #dcebe3;
  border-radius: 8px;
}

.practice-company-box::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #2ecc71;
  content: "";
}

.practice-company-header {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #e2ebe6;
  text-align: left;
}

.practice-company-icon {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 2.4rem;
  align-items: center;
  justify-content: center;
  color: #237a57;
  background: rgba(46, 204, 113, 0.12);
  border-radius: 8px;
}

.practice-company-kicker {
  margin-bottom: 0.1rem;
  color: #237a57;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.practice-company-box > p {
  color: #52645b;
  line-height: 1.65;
}

.practice-company-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid #e2ebe6;
}

.practice-company-footer .btn {
  flex-shrink: 0;
  border-radius: 8px;
}

.practice-strategy-box {
  padding: 1rem;
  background: #fff;
  border: 1px solid #dcebe3;
  border-radius: 8px;
}

.practice-strategy-header {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #e2ebe6;
  text-align: left;
}

.practice-strategy-icon {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 2.4rem;
  align-items: center;
  justify-content: center;
  color: #237a57;
  background: rgba(46, 204, 113, 0.12);
  border-radius: 8px;
}

.practice-strategy-kicker {
  margin-bottom: 0.1rem;
  color: #237a57;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.practice-strategy-list {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e2ebe6;
  list-style: none;
}

.practice-strategy-list li {
  display: grid;
  grid-template-columns: minmax(135px, 175px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 0.85rem 0;
  color: #52645b;
  border-bottom: 1px solid #e2ebe6;
  line-height: 1.55;
}

.practice-strategy-list li b {
  color: #237a57;
  font-weight: 700;
}

.practice-strategy-note {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  color: #65766d;
  border-top: 1px solid #e2ebe6;
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 767.98px) {
  .r-recommendations-grid {
    grid-template-columns: 1fr;
  }

  .practice-company-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .practice-strategy-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (min-width: 768px) {
  .practice-company-box,
  .practice-strategy-box {
    padding: 1.5rem;
  }
}

.tools-filter-panel {
  background: #fff;
  border: 1px solid #e7ece9;
}

.tools-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tools-filter-field label {
  color: #25362d;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

.tools-result-meta {
  color: #66766d;
  font-size: .95rem;
}

.tool-card-button {
  background: #fff;
  border: 1px solid #e2ebe6;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  width: 100%;
}

.tool-card-button:hover,
.tool-card-button:focus {
  border-color: #8fd7ad;
  box-shadow: 0 .75rem 1.75rem rgba(42, 91, 64, .13);
  transform: translateY(-2px);
}

.tool-card-icon {
  align-items: center;
  background: #effaf4;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.tool-card-title {
  color: #1f3328;
  font-size: 1rem;
  line-height: 1.3;
}

.tool-card-description {
  display: -webkit-box;
  line-height: 1.65;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.tool-card-footer {
  margin-top: auto;
}

.tool-modal-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.tool-modal-meta-item {
  background: #f7faf8;
  border: 1px solid #e2ebe6;
  border-radius: .75rem;
  padding: .85rem;
}

.tool-modal-meta-item span {
  color: #6c786f;
  display: block;
  font-size: .76rem;
  font-weight: 700;
  margin-bottom: .25rem;
  text-transform: uppercase;
}

@media (max-width: 991.98px) {
  .tools-filter-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .tool-modal-meta {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Linear Hub Landing
========================= */
.linear-landing-hero {
  padding: 2rem 0 1.5rem;
}

.linear-landing-panel {
  padding: clamp(1.25rem, 3vw, 3rem);
  border: 1px solid #d8ece1;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 18%, rgba(46, 204, 113, 0.12), transparent 30%),
    linear-gradient(135deg, #f4fbf7 0%, #fbfefd 100%);
  box-shadow: 0 18px 48px rgba(29, 71, 51, 0.1);
}

.linear-eyebrow {
  letter-spacing: 0.08em;
}

.linear-landing-hero h1 {
  max-width: 640px;
  color: #17211d;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.08;
}

.linear-landing-lead {
  max-width: 620px;
  color: #52645b;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

.linear-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.linear-hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 560px;
}

.linear-hero-highlights div {
  min-height: 88px;
  padding: 1rem;
  border: 1px solid #dcebe3;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.linear-hero-highlights span {
  display: block;
  color: #237a57;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
}

.linear-hero-highlights p {
  margin: 0.35rem 0 0;
  color: #5d7067;
  font-size: 0.9rem;
  line-height: 1.3;
}

.linear-welcome-video {
  overflow: hidden;
  border: 1px solid rgba(23, 33, 29, 0.12);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(23, 33, 29, 0.14);
}

.linear-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e6eee9;
  color: #263d32;
  font-weight: 700;
}

.linear-video-header i {
  color: #2f8f68;
}

.linear-video-link {
  color: #2f8f68;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.linear-video-link:hover,
.linear-video-link:focus {
  color: #17633c;
  text-decoration: underline;
}

.linear-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

/* =========================
   Intro Stepper Detail Page
========================= */
:root {
  --intro-green: #2ecc71;
  --intro-green-dark: #17633c;
  --intro-ink: #17211d;
  --intro-muted: #5f6b66;
  --intro-border: rgba(23, 33, 29, 0.11);
  --intro-surface: rgba(255, 255, 255, 0.92);
  --intro-surface-soft: rgba(255, 255, 255, 0.74);
  --intro-shadow: 0 18px 52px rgba(23, 33, 29, 0.13);
}

.intro-shell {
  padding: 1rem 0 3rem;
}

.intro-panel {
  background: var(--intro-surface);
  border: 1px solid var(--intro-border);
  border-radius: 8px;
  box-shadow: var(--intro-shadow);
  overflow: hidden;
}

.intro-sidebar {
  height: 100%;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(46, 204, 113, 0.12), rgba(255, 255, 255, 0.52));
  border-right: 1px solid var(--intro-border);
}

.intro-progress {
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(23, 33, 29, 0.09);
  overflow: hidden;
}

.intro-progress-bar {
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--intro-green), #7bd889);
  transition: width 0.25s ease;
}

.intro-step-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.intro-step-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  width: 100%;
  padding: 0.95rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--intro-ink);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.intro-step-tab:hover,
.intro-step-tab:focus {
  border-color: rgba(46, 204, 113, 0.42);
  background: #fff;
  transform: translateY(-1px);
  outline: none;
}

.intro-step-tab.is-active {
  border-color: rgba(46, 204, 113, 0.64);
  background: #fff;
  box-shadow: 0 10px 28px rgba(46, 204, 113, 0.14);
}

.intro-step-number {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.14);
  color: var(--intro-green-dark);
  font-weight: 700;
}

.intro-step-tab.is-active .intro-step-number {
  background: var(--intro-green);
  color: #fff;
}

.intro-step-title {
  display: block;
  font-weight: 700;
  line-height: 1.25;
}

.intro-step-meta {
  display: block;
  margin-top: 0.2rem;
  color: var(--intro-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.intro-content {
  padding: clamp(1.25rem, 3vw, 2.4rem);
}

.intro-mobile-status {
  display: none;
}

.intro-page {
  display: none;
}

.intro-page.is-active {
  display: block;
  animation: introFade 0.22s ease;
}

@keyframes introFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.13);
  color: var(--intro-green-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.intro-copy {
  color: var(--intro-muted);
  line-height: 1.75;
}

.intro-card {
  height: 100%;
  padding: 1.15rem;
  border: 1px solid var(--intro-border);
  border-radius: 8px;
  background: var(--intro-surface-soft);
}

.intro-card i {
  color: var(--intro-green);
}

.intro-video {
  border: 1px solid var(--intro-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 36px rgba(23, 33, 29, 0.11);
}

.intro-video-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.intro-video-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.13);
  color: var(--intro-green-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.intro-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--intro-border);
}

.intro-btn-quiet {
  border: 1px solid var(--intro-border);
  background: #fff;
  color: var(--intro-ink);
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.intro-btn-quiet:hover,
.intro-btn-quiet:focus {
  border-color: rgba(46, 204, 113, 0.48);
  color: var(--intro-ink);
  transform: translateY(-1px);
}

.intro-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.intro-feature-details summary {
  display: none;
}

.intro-laptop {
  width: 100%;
  border-radius: 8px;
}

@media (max-width: 991.98px) {
  .intro-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--intro-border);
  }

  .intro-step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .intro-step-tab {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .intro-shell .container {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }

  .intro-panel {
    border-radius: 8px;
  }

  .intro-sidebar {
    padding: 1rem;
  }

  .intro-sidebar .intro-progress {
    margin-top: 0.85rem !important;
  }

  .intro-sidebar > .d-flex {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .intro-sidebar .intro-step-number {
    flex: 0 0 auto;
  }

  .intro-step-list,
  .intro-feature-grid {
    grid-template-columns: 1fr;
  }

  .intro-step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 1rem;
  }

  .intro-step-tab {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.45rem;
    min-height: 68px;
    padding: 0.65rem 0.45rem;
    text-align: center;
    box-shadow: none;
  }

  .intro-step-number {
    width: 1.85rem;
    height: 1.85rem;
    min-width: 1.85rem;
    font-size: 0.9rem;
  }

  .intro-step-meta {
    display: none;
  }

  .intro-step-title {
    font-size: 0.82rem;
    line-height: 1.2;
  }

  .intro-content {
    padding: 1.1rem 1.1rem 8.25rem;
  }

  .intro-mobile-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--intro-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--intro-muted);
    font-size: 0.86rem;
    font-weight: 700;
  }

  .intro-mobile-status::after {
    content: "";
    width: 64px;
    height: 0.35rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--intro-green), rgba(46, 204, 113, 0.22));
  }

  .intro-page h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.25;
  }

  .intro-page .lead {
    padding-inline: 0 !important;
    margin-bottom: 0 !important;
    font-size: 1.05rem;
    line-height: 1.55;
  }

  .intro-copy {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .intro-video {
    box-shadow: 0 8px 22px rgba(23, 33, 29, 0.1);
  }

  .intro-video .p-4,
  .intro-card {
    padding: 1rem !important;
  }

  .intro-card .d-flex,
  .intro-card .d-flex.align-items-start {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .intro-laptop {
    margin-top: 0.5rem;
  }

  .intro-feature-details {
    margin-top: 1rem;
  }

  .intro-feature-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 48px;
    padding: 0.85rem 1rem;
    border: 1px solid var(--intro-border);
    border-radius: 8px;
    background: #fff;
    color: var(--intro-ink);
    cursor: pointer;
    font-weight: 700;
    list-style: none;
  }

  .intro-feature-details summary::-webkit-details-marker {
    display: none;
  }

  .intro-feature-details summary::after {
    content: "+";
    color: var(--intro-green-dark);
    font-size: 1.25rem;
    line-height: 1;
  }

  .intro-feature-details[open] summary::after {
    content: "-";
  }

  .intro-feature-details .intro-feature-grid {
    margin-top: 0.85rem;
  }

  .intro-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 1.5rem;
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-right: -1.1rem;
    margin-left: -1.1rem;
    padding: 0.85rem 1.1rem calc(0.85rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 -12px 28px rgba(23, 33, 29, 0.1);
  }

  .intro-actions .btn,
  .intro-actions .intro-btn-quiet {
    width: 100%;
    text-align: center;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
  }

  .intro-actions button:disabled {
    opacity: 0.48;
    transform: none;
  }

  .intro-actions [data-step-status] {
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .intro-content {
    padding: 0.9rem 0.9rem 8.25rem;
  }

  .intro-step-tab {
    padding: 0.7rem;
  }

  .intro-step-title {
    font-size: 0.76rem;
  }
}

.linear-hero {
  background: linear-gradient(135deg, #f4fbf7 0%, #fbfefd 100%);
  border: 1px solid #d8ece1;
}

.green-text {
  color: #2ecc71;
}

@media (max-width: 991.98px) {
  .linear-detail-page {
    padding-top: 100px;
  }
}

@media (max-width: 575.98px) {
  .linear-view-page {
    padding-top: 76px;
  }

  .linear-detail-page {
    padding-top: 90px;
  }
}

#welcome,
#learning-path {
  scroll-margin-top: 92px;
}

@media (max-width: 991.98px) {
  .linear-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .linear-section-heading .btn {
    align-self: flex-start;
  }
}

@media (max-width: 767.98px) {
  .linear-hero-actions {
    flex-direction: column;
  }

  .linear-hero-actions .btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
  }

  .linear-hero-highlights {
    grid-template-columns: 1fr;
  }

  .linear-video-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
