/* REBASH Academy – Custom Styles */

:root {
  --rebash-blue: #1976d2;
  --rebash-blue-dark: #1565c0;
  --rebash-grey: #424242;
  --rebash-grey-light: #f5f5f5;
}

/* Sidebar sections: collapsed by default, chevron indicates expand */
.md-nav__item--nested > .md-nav__toggle ~ label.md-nav__link {
  cursor: pointer;
  font-weight: 600;
}

.md-nav__item--nested > .md-nav__toggle ~ label.md-nav__link .md-nav__icon {
  transition: transform 0.15s ease;
}

.md-nav__item--nested > .md-nav__toggle:checked ~ label.md-nav__link .md-nav__icon {
  transform: rotate(90deg);
}

/* Hero Section */
.rebash-hero {
  background: linear-gradient(135deg, var(--rebash-blue) 0%, var(--rebash-blue-dark) 100%);
  color: #fff;
  padding: 3rem 0 5rem;
}

.rebash-hero__inner {
  max-width: 61rem;
}

.rebash-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.88;
}

.rebash-hero__title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: #fff;
}

.rebash-hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  opacity: 0.92;
  max-width: 42rem;
  margin: 0 0 2.25rem;
}

/* Inner page hero (Learning Paths, etc.) */
.rebash-page-hero {
  background: linear-gradient(135deg, var(--rebash-blue) 0%, var(--rebash-blue-dark) 100%);
  color: #fff;
  padding: 2.75rem 0 3.25rem;
}

.rebash-page-hero__inner {
  max-width: 61rem;
}

.rebash-page-hero__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.88;
}

.rebash-page-hero__title {
  margin: 0 0 0.85rem;
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.rebash-page-hero__lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.92;
}

.rebash-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero & section CTA buttons */
.rebash-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.rebash-cta:hover {
  transform: translateY(-1px);
}

.rebash-cta--primary {
  background-color: #fff;
  color: var(--rebash-blue);
  border-color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.rebash-cta--primary:hover {
  background-color: var(--rebash-grey-light);
  color: var(--rebash-blue-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.rebash-cta--secondary {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}

.rebash-cta--secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* CTAs on light section backgrounds */
.rebash-cta--on-light.rebash-cta--primary {
  background-color: var(--rebash-blue);
  color: #fff;
  border-color: var(--rebash-blue);
}

.rebash-cta--on-light.rebash-cta--primary:hover {
  background-color: var(--rebash-blue-dark);
  border-color: var(--rebash-blue-dark);
  color: #fff;
}

.rebash-cta--on-light.rebash-cta--secondary {
  background-color: transparent;
  color: var(--rebash-blue);
  border-color: var(--rebash-blue);
}

.rebash-cta--on-light.rebash-cta--secondary:hover {
  background-color: rgba(25, 118, 210, 0.08);
  color: var(--rebash-blue-dark);
  border-color: var(--rebash-blue-dark);
}

/* Header brand lockup: icon + title, vertically centered */
.md-header__inner {
  align-items: center;
}

.rebash-header-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  height: 2.4rem;
  margin-right: 0.25rem;
  flex-shrink: 0;
}

.rebash-header-spacer {
  flex: 1 1 auto;
  min-width: 0;
  height: 2.4rem;
}

.rebash-header-brand .md-header__button.md-logo {
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

.rebash-header-brand .md-header__button.md-logo img,
.rebash-header-brand .md-header__button.md-logo svg {
  display: block;
  height: 1.75rem;
  width: 1.75rem;
}

.rebash-header-brand__title {
  display: flex;
  align-items: center;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.rebash-header-brand__title:hover {
  opacity: 0.92;
}

/* Lifted header: keep brand on one compact row above tabs */
.md-header--lifted .rebash-header-brand {
  align-self: center;
}

/* Utilities: theme, search, repo — stay grouped on the right */
.md-header__option,
.md-header__inner > .md-header__button[for="__search"],
.md-header__source {
  flex-shrink: 0;
}

@media screen and (min-width: 60em) {
  [dir=ltr] .md-header__source {
    margin-left: 0.75rem;
  }
}

@media screen and (max-width: 59.9375em) {
  .rebash-header-brand__title {
    font-size: 1rem;
  }
}

/* Sections */
.rebash-section {
  padding: 3rem 0;
}

.rebash-section__title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  color: var(--md-default-fg-color);
}

.rebash-section__lead {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 42rem;
  margin: 0 0 1.5rem;
  color: var(--md-default-fg-color--light);
}

.rebash-section--paths {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  background: linear-gradient(180deg, var(--md-default-bg-color--light) 0%, var(--md-default-bg-color) 100%);
}

.rebash-section__header {
  margin-bottom: 2rem;
}

.rebash-section__header .rebash-section__title {
  margin-bottom: 0;
}

.rebash-section__lead--inline {
  margin: 0.35rem 0 0;
  max-width: 36rem;
}

.rebash-section--alt {
  background: var(--md-default-bg-color--light);
}

.rebash-section--panels {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  padding-bottom: 4rem;
}

@media screen and (min-width: 768px) {
  .rebash-section--panels {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Learning path cards */
.rebash-path-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media screen and (min-width: 768px) {
  .rebash-path-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1100px) {
  .rebash-path-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Learning path picker (tile → expand steps) */
.rebash-path-picker {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media screen and (min-width: 640px) {
  .rebash-path-picker {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1100px) {
  .rebash-path-picker {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rebash-path-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 2px solid var(--md-default-fg-color--lightest);
  border-radius: 0.75rem;
  background: var(--md-default-bg-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rebash-path-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(25, 118, 210, 0.12);
  border-color: rgba(25, 118, 210, 0.3);
}

.rebash-path-tile.is-active {
  border-color: var(--rebash-blue);
  box-shadow: 0 10px 28px rgba(25, 118, 210, 0.18);
  transform: translateY(-2px);
}

.rebash-path-tile__banner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 4.25rem;
  padding: 1rem 1rem 0.85rem;
}

.rebash-path-tile--devops .rebash-path-tile__banner { background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%); }
.rebash-path-tile--aws .rebash-path-tile__banner { background: linear-gradient(135deg, #ff9900 0%, #ec7211 100%); }
.rebash-path-tile--azure .rebash-path-tile__banner { background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%); }
.rebash-path-tile--gcp .rebash-path-tile__banner { background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%); }
.rebash-path-tile--secops .rebash-path-tile__banner { background: linear-gradient(135deg, #5e35b1 0%, #311b92 100%); }
.rebash-path-tile--platform .rebash-path-tile__banner { background: linear-gradient(135deg, #00838f 0%, #006064 100%); }
.rebash-path-tile--architect .rebash-path-tile__banner { background: linear-gradient(135deg, #5e35b1 0%, #283593 100%); }

.rebash-path-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.rebash-path-tile__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.rebash-path-tile__badge {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rebash-path-tile__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.15rem 1.15rem;
}

.rebash-path-tile__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.rebash-path-tile__summary {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--md-default-fg-color--light);
}

.rebash-path-tile__meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--md-default-fg-color--lighter);
}

.rebash-path-tile__hint {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rebash-blue);
}

.rebash-path-tile.is-active .rebash-path-tile__hint::after {
  content: " ↑";
}

.rebash-path-tile:not(.is-active) .rebash-path-tile__hint::after {
  content: " →";
}

/* Expanded step tiles */
.rebash-path-steps {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--md-default-fg-color--lightest);
}

.rebash-path-steps__header {
  margin-bottom: 1.25rem;
}

.rebash-path-steps__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.rebash-path-steps__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--md-default-fg-color--light);
  max-width: 42rem;
}

.rebash-step-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (min-width: 640px) {
  .rebash-step-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 960px) {
  .rebash-step-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 1200px) {
  .rebash-step-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.rebash-step-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1rem 1.1rem;
  border-radius: 0.65rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  background: var(--md-default-bg-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.rebash-step-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(25, 118, 210, 0.12);
  border-color: rgba(25, 118, 210, 0.35);
}

.rebash-step-tile__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.rebash-step-tile--devops .rebash-step-tile__num { background: rgba(25, 118, 210, 0.12); color: #1565c0; }
.rebash-step-tile--aws .rebash-step-tile__num { background: rgba(255, 153, 0, 0.15); color: #e65100; }
.rebash-step-tile--azure .rebash-step-tile__num { background: rgba(0, 120, 212, 0.12); color: #005a9e; }
.rebash-step-tile--gcp .rebash-step-tile__num { background: rgba(66, 133, 244, 0.12); color: #1a73e8; }
.rebash-step-tile--secops .rebash-step-tile__num { background: rgba(94, 53, 177, 0.12); color: #4527a0; }
.rebash-step-tile--platform .rebash-step-tile__num { background: rgba(0, 131, 143, 0.12); color: #006064; }
.rebash-step-tile--architect .rebash-step-tile__num { background: rgba(40, 53, 147, 0.12); color: #283593; }

.rebash-step-tile__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--md-default-fg-color);
}

.rebash-step-tile__desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--md-default-fg-color--light);
}

.rebash-path-card--static {
  cursor: default;
}

.rebash-path-card--static:hover {
  transform: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border-color: var(--md-default-fg-color--lightest);
}

.rebash-path-card--static .rebash-path-card__link {
  color: var(--md-default-fg-color--lighter);
}

.rebash-path-card--static .rebash-path-card__link::after {
  content: none;
}

/* Mission quote panel */
.rebash-quote-panel {
  padding: 2rem 2rem 1.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  background: linear-gradient(145deg, rgba(25, 118, 210, 0.08) 0%, var(--md-default-bg-color) 60%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.rebash-quote-panel__text {
  margin: 0 0 0.85rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--rebash-blue-dark);
}

.rebash-quote-panel__lead {
  margin: 0;
  max-width: 44rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--md-default-fg-color--light);
}

/* Founder / owner card */
.rebash-owner-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  background: var(--md-default-bg-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

@media screen and (min-width: 640px) {
  .rebash-owner-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 1.75rem;
  }
}

.rebash-owner-card__avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rebash-blue) 0%, var(--rebash-blue-dark) 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.rebash-owner-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rebash-owner-card__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rebash-blue-dark);
}

.rebash-owner-card__name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.rebash-owner-card__bio {
  margin: 0;
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--md-default-fg-color--light);
}

.rebash-owner-card__link {
  align-self: flex-start;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rebash-blue);
  text-decoration: none;
}

.rebash-owner-card__link:hover {
  color: var(--rebash-blue-dark);
}

.rebash-owner-card__link::after {
  content: " →";
}

/* Documentation standards grid */
.rebash-standards-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (min-width: 640px) {
  .rebash-standards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 960px) {
  .rebash-standards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rebash-standards-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border-radius: 0.65rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  background: var(--md-default-bg-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.rebash-standards-item__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(25, 118, 210, 0.12);
  color: var(--rebash-blue-dark);
  font-size: 0.7rem;
  font-weight: 700;
}

.rebash-standards-item__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--md-default-fg-color);
}

.rebash-standards-item__desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--md-default-fg-color--light);
}

.rebash-path-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  background: var(--md-default-bg-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rebash-path-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(25, 118, 210, 0.14);
  border-color: rgba(25, 118, 210, 0.35);
}

.rebash-path-card__banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 5.5rem;
  padding: 1.25rem 1.25rem 1rem;
}

.rebash-path-card--devops .rebash-path-card__banner {
  background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
}

.rebash-path-card--aws .rebash-path-card__banner {
  background: linear-gradient(135deg, #ff9900 0%, #ec7211 100%);
}

.rebash-path-card--secops .rebash-path-card__banner {
  background: linear-gradient(135deg, #5e35b1 0%, #311b92 100%);
}

.rebash-path-card--azure .rebash-path-card__banner {
  background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
}

.rebash-path-card--gcp .rebash-path-card__banner {
  background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
}

.rebash-path-card--platform .rebash-path-card__banner {
  background: linear-gradient(135deg, #00838f 0%, #006064 100%);
}

.rebash-path-card--architect .rebash-path-card__banner {
  background: linear-gradient(135deg, #5e35b1 0%, #283593 100%);
}

.rebash-path-card--featured {
  pointer-events: auto;
}

.rebash-path-card--featured .rebash-path-card__body {
  padding: 1.5rem 1.5rem 1.65rem;
}

.rebash-path-grid--featured {
  grid-template-columns: 1fr;
}

.rebash-path-card__track--linked a {
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
}

.rebash-path-card__track--linked a:hover {
  background: rgba(25, 118, 210, 0.22);
  transform: translateY(-1px);
}

.rebash-path-card--azure .rebash-path-card__topics .rebash-path-card__topic {
  background: rgba(0, 120, 212, 0.12);
  color: #005a9e;
}

.rebash-path-card--gcp .rebash-path-card__topics .rebash-path-card__topic {
  background: rgba(66, 133, 244, 0.12);
  color: #1a73e8;
}

.rebash-path-card--platform .rebash-path-card__topics .rebash-path-card__topic {
  background: rgba(0, 131, 143, 0.12);
  color: #006064;
}

.rebash-path-card--architect .rebash-path-card__topics .rebash-path-card__topic {
  background: rgba(40, 53, 147, 0.12);
  color: #283593;
}

.rebash-path-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(4px);
}

.rebash-path-card__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.rebash-path-card__badge {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rebash-path-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 1.35rem;
}

.rebash-path-card__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--md-default-fg-color);
}

.rebash-path-card__summary {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--md-default-fg-color--light);
}

.rebash-path-card__track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rebash-path-card__track span {
  position: relative;
  padding: 0.2rem 0.55rem;
  border-radius: 0.35rem;
  background: rgba(25, 118, 210, 0.1);
  color: var(--rebash-blue-dark);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
}

.rebash-path-card--aws .rebash-path-card__track span,
.rebash-path-card__topics .rebash-path-card__topic {
  background: rgba(25, 118, 210, 0.1);
  color: var(--rebash-blue-dark);
}

.rebash-path-card--aws .rebash-path-card__topics .rebash-path-card__topic {
  background: rgba(255, 153, 0, 0.12);
  color: #e65100;
}

.rebash-path-card--secops .rebash-path-card__topics .rebash-path-card__topic {
  background: rgba(94, 53, 177, 0.12);
  color: #4527a0;
}

.rebash-path-card__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rebash-path-card__topic {
  padding: 0.35rem 0.65rem;
  border-radius: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

.rebash-path-card__meta {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--md-default-fg-color--lighter);
}

.rebash-path-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rebash-blue);
  transition: color 0.15s ease;
}

.rebash-path-card:hover .rebash-path-card__link {
  color: var(--rebash-blue-dark);
}

.rebash-path-card__link::after {
  content: " →";
}

/* Compact cards + feature grids */
.rebash-path-card--compact .rebash-path-card__banner {
  min-height: 4.25rem;
  padding: 1rem 1rem 0.85rem;
}

.rebash-path-card--compact .rebash-path-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
}

.rebash-path-card--compact .rebash-path-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.rebash-path-card--compact .rebash-path-card__body {
  padding: 1rem 1.15rem 1.2rem;
  gap: 0.55rem;
}

.rebash-path-card--compact .rebash-path-card__title {
  font-size: 1.05rem;
}

.rebash-path-card--compact .rebash-path-card__summary {
  font-size: 0.86rem;
}

.rebash-feature-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media screen and (min-width: 640px) {
  .rebash-feature-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .rebash-feature-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .rebash-feature-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 960px) {
  .rebash-feature-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .rebash-feature-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tutorial & resource card colors */
.rebash-path-card--linux .rebash-path-card__banner {
  background: linear-gradient(135deg, #263238 0%, #37474f 100%);
}

.rebash-path-card--docker .rebash-path-card__banner {
  background: linear-gradient(135deg, #0288d1 0%, #01579b 100%);
}

.rebash-path-card--k8s .rebash-path-card__banner {
  background: linear-gradient(135deg, #00838f 0%, #006064 100%);
}

.rebash-path-card--terraform .rebash-path-card__banner {
  background: linear-gradient(135deg, #7b1fa2 0%, #4a148c 100%);
}

.rebash-path-card--projects .rebash-path-card__banner {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
}

.rebash-path-card--labs .rebash-path-card__banner {
  background: linear-gradient(135deg, #00897b 0%, #004d40 100%);
}

.rebash-path-card--blog .rebash-path-card__banner {
  background: linear-gradient(135deg, #546e7a 0%, #37474f 100%);
}

.rebash-path-card--cheatsheets .rebash-path-card__banner {
  background: linear-gradient(135deg, #6a1b9a 0%, #4a148c 100%);
}

.rebash-path-card--interview .rebash-path-card__banner {
  background: linear-gradient(135deg, #ef6c00 0%, #e65100 100%);
}

.rebash-path-card--projects .rebash-path-card__topics .rebash-path-card__topic {
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
}

.rebash-path-card--labs .rebash-path-card__topics .rebash-path-card__topic {
  background: rgba(0, 137, 123, 0.12);
  color: #00695c;
}

/* Bottom panels: community + updates */
.rebash-panel {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.rebash-panel__content {
  padding: 1.75rem 1.5rem;
}

.rebash-panel__eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.rebash-panel__title {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.rebash-panel__lead {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--md-default-fg-color--light);
  max-width: 28rem;
}

.rebash-panel--community {
  background: linear-gradient(145deg, rgba(25, 118, 210, 0.08) 0%, var(--md-default-bg-color) 55%);
}

.rebash-panel--community .rebash-panel__eyebrow,
.rebash-panel--community .rebash-panel__title {
  color: var(--rebash-blue-dark);
}

.rebash-panel--updates {
  background: linear-gradient(145deg, rgba(94, 53, 177, 0.08) 0%, var(--md-default-bg-color) 55%);
}

.rebash-panel--updates .rebash-panel__eyebrow,
.rebash-panel--updates .rebash-panel__title {
  color: #4527a0;
}

/* Grid */
.rebash-grid {
  display: grid;
  gap: 1.25rem;
}

.rebash-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.rebash-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.rebash-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Cards */
.rebash-card {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
  background: var(--md-default-bg-color);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.rebash-card:hover {
  border-color: var(--rebash-blue);
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.12);
  transform: translateY(-2px);
}

.rebash-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--md-default-fg-color);
}

.rebash-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--md-default-fg-color--light);
}

.rebash-card--small {
  padding: 1.25rem;
}

.rebash-card__icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* Giscus comments */
.giscus-container {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--md-default-fg-color--lightest);
}

/* Footer social links enhancement */
.md-footer-meta {
  flex-wrap: wrap;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .rebash-hero__title {
    font-size: 2rem;
  }

  .rebash-hero {
    padding: 2rem 0 3rem;
  }

  .rebash-cta {
    width: 100%;
    max-width: 20rem;
  }
}
