/* REBASH Academy – Custom Styles */

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

/* Typography — bold dark page title, large regular section headings
   (kubernetes.io-style hierarchy) */
.md-typeset h1 {
  color: var(--md-default-fg-color);
  font-weight: 700;
  font-size: 2.2em;
  letter-spacing: -0.02em;
  margin-bottom: 1.2em;
}

.md-typeset h2 {
  color: var(--md-default-fg-color);
  font-weight: 400;
  font-size: 1.75em;
  letter-spacing: -0.01em;
}

.md-typeset h3 {
  color: var(--md-default-fg-color);
  font-weight: 600;
  font-size: 1.25em;
}

.md-typeset h4 {
  font-weight: 700;
}

/* Code blocks — minimal light panel (GitHub-like) */
[data-md-color-scheme="default"] {
  --md-code-bg-color: #f6f8fa;
  --md-code-fg-color: #1f2328;
}

.md-typeset pre > code {
  border: 1px solid #e1e4e8;
  border-radius: 0.25rem;
  padding: 1em 1.2em;
}

[data-md-color-scheme="slate"] .md-typeset pre > code {
  border-color: rgba(255, 255, 255, 0.09);
}

/* Inline code: same soft panel, no border */
.md-typeset code {
  border-radius: 0.2rem;
}

/* Admonitions — flat panel with solid left bar (kubernetes.io-like).
   Per-type accent colours come from Material's own border-color rules. */
.md-typeset .admonition,
.md-typeset details {
  border-width: 0;
  border-left-width: 0.2rem;
  border-left-style: solid;
  border-radius: 0;
  box-shadow: none;
  background-color: #f2f6f9;
  padding: 0.7rem 1rem;
  font-size: 0.75rem;
}

[data-md-color-scheme="slate"] .md-typeset .admonition,
[data-md-color-scheme="slate"] .md-typeset details {
  background-color: rgba(255, 255, 255, 0.04);
}

.md-typeset .admonition-title,
.md-typeset summary {
  background-color: transparent !important;
  margin: 0;
  margin-inline: 0;
  padding: 0;
  padding-block: 0;
  padding-inline: 0;
  font-weight: 700;
  border: none;
}

[dir="ltr"] .md-typeset .admonition-title,
[dir="rtl"] .md-typeset .admonition-title {
  padding-left: 0;
  padding-right: 0;
}

[dir="ltr"] .md-typeset summary {
  padding-left: 0;
  padding-right: 1.8rem;
}

[dir="rtl"] .md-typeset summary {
  padding-right: 0;
  padding-left: 1.8rem;
}

.md-typeset .admonition-title + * {
  margin-top: 0.3em;
}

/* Hide the admonition icon; keep the chevron on collapsible blocks */
.md-typeset .admonition-title::before,
.md-typeset summary::before {
  display: none;
}

.md-typeset summary {
  padding-right: 1.8rem;
}

.md-typeset .admonition > :last-child,
.md-typeset details > :last-child {
  margin-bottom: 0;
}

/* Serpentine career-path roadmap (3-column snake with brand-icon nodes) */
.ra-roadmap {
  margin: 1.5rem 0;
}

.ra-roadmap .rebash-roadmap__canvas {
  position: relative;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0.75rem 0;
}

.md-typeset .ra-roadmap ol.rebash-roadmap__stops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 2.4rem 0.75rem;
}

.ra-roadmap .rebash-roadmap__stops > li:nth-child(6n + 1) { grid-column: 1; }
.ra-roadmap .rebash-roadmap__stops > li:nth-child(6n + 2) { grid-column: 2; }
.ra-roadmap .rebash-roadmap__stops > li:nth-child(6n + 3) { grid-column: 3; }
.ra-roadmap .rebash-roadmap__stops > li:nth-child(6n + 4) { grid-column: 3; }
.ra-roadmap .rebash-roadmap__stops > li:nth-child(6n + 5) { grid-column: 2; }
.ra-roadmap .rebash-roadmap__stops > li:nth-child(6n)     { grid-column: 1; }

.md-typeset a.ra-roadmap__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--md-default-fg-color);
  text-decoration: none !important;
}

.ra-roadmap .ra-roadmap__circle {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.md-typeset a.ra-roadmap__node:hover .ra-roadmap__circle,
.md-typeset a.ra-roadmap__node:focus-visible .ra-roadmap__circle {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.ra-roadmap .ra-roadmap__circle svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: currentColor;
}

.ra-roadmap__label {
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  max-width: 8rem;
}

/* Connector: single thin line instead of the old band + dashes */
.ra-roadmap .rebash-roadmap__stroke {
  stroke: color-mix(in srgb, var(--md-default-fg-color) 25%, transparent);
  stroke-width: 1.5;
}

.ra-roadmap .rebash-roadmap__dash {
  display: none;
}

[data-md-color-scheme="slate"] .ra-roadmap .ra-roadmap__circle {
  background: var(--md-default-bg-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Course flow — vertical stepper with a stage badge and topic chips */
.ra-flow {
  margin: 1rem 0 1.5rem;
}

.md-typeset .ra-flow ol.ra-flow__stages {
  list-style: none;
  margin: 0;
  padding: 0;
}

.md-typeset .ra-flow .ra-flow__stage {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  padding: 0 0 1rem;
}

.ra-flow .ra-flow__stage:last-child {
  padding-bottom: 0;
}

/* Rail connecting the stage badges */
.ra-flow .ra-flow__stage::before {
  content: "";
  position: absolute;
  left: 1.9rem;
  top: 0.6rem;
  bottom: -0.6rem;
  width: 2px;
  background: var(--md-default-fg-color--lightest);
}

.ra-flow .ra-flow__stage:last-child::before {
  display: none;
}

.ra-flow__badge {
  position: relative;
  z-index: 1;
  flex: 0 0 3.8rem;
  text-align: center;
  padding: 0.2rem 0.3rem;
  border-radius: 0.9rem;
  background: #1976d2;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.ra-flow__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.25rem;
  padding-top: 0.05rem;
}

.ra-flow__chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 1rem;
  background: var(--md-code-bg-color);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.4;
}

.ra-flow__arrow {
  color: var(--md-default-fg-color--light);
  font-size: 0.7rem;
  font-weight: 700;
  user-select: none;
}

[data-md-color-scheme="slate"] .ra-flow__badge {
  background: #42a5f5;
  color: #0d1b2a;
}

/* Tables — full-width, soft header band, rounded frame, zebra + hover rows */
.md-typeset .md-typeset__table {
  display: block;
  width: 100%;
  overflow-x: auto;
}

.md-typeset .md-typeset__table table:not([class]) {
  display: table;
  width: 100%;
  margin: 0;
  font-size: 0.7rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.4rem;
  overflow: hidden;
  box-shadow: none;
}

.md-typeset table:not([class]) th {
  background-color: #f2f6f9;
  color: var(--md-default-fg-color);
  font-weight: 700;
  padding: 0.7em 1em;
}

.md-typeset table:not([class]) td {
  padding: 0.6em 1em;
  border-top: 1px solid var(--md-default-fg-color--lightest);
  vertical-align: middle;
}

.md-typeset table:not([class]) tbody tr:nth-child(even) {
  background-color: color-mix(in srgb, var(--md-default-fg-color) 2%, transparent);
}

.md-typeset table:not([class]) tbody tr:hover {
  background-color: color-mix(in srgb, #1976d2 6%, transparent);
  box-shadow: none;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background-color: rgba(255, 255, 255, 0.05);
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) tbody tr:hover {
  background-color: rgba(66, 165, 245, 0.08);
}

/* Facts line (Duration · Difficulty · Badge) tight under the page title */
.md-typeset h1 + .ra-facts {
  margin-top: -1.6em;
  font-size: 0.7rem;
  color: var(--md-default-fg-color--light);
}

/* Header — slightly taller bar with quick links (About / Blog / Contact) */
.md-header__inner {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.rebash-header-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-right: 0.5rem;
}

.rebash-header-links a {
  color: var(--md-primary-bg-color);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 0.2rem;
  opacity: 0.85;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.rebash-header-links a:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.12);
}

/* On small screens the drawer menu covers navigation — hide quick links */
@media screen and (max-width: 44.9375em) {
  .rebash-header-links {
    display: none;
  }
}

/* Breadcrumbs — ancestor links highlighted, current page muted */
.md-path .md-path__link {
  color: #1976d2;
}

.md-path .md-path__link:hover {
  color: #1259a5;
  text-decoration: underline;
}

.md-path .md-path__item:last-child .md-path__link {
  color: var(--md-default-fg-color--light);
  pointer-events: none;
}

[data-md-color-scheme="slate"] .md-path .md-path__link {
  color: #64b5f6;
}

[data-md-color-scheme="slate"] .md-path .md-path__item:last-child .md-path__link {
  color: var(--md-default-fg-color--light);
}

/* Ambient cloud-AI background — faint fixed glows behind every page.
   Content surfaces (code, tables, admonitions) stay solid for readability. */
body {
  background-color: var(--md-default-bg-color);
  background-image:
    radial-gradient(42rem 30rem at 10% -6%, rgba(25, 118, 210, 0.07), transparent 62%),
    radial-gradient(38rem 28rem at 96% 4%, rgba(0, 172, 193, 0.06), transparent 62%),
    radial-gradient(46rem 34rem at 52% 112%, rgba(124, 77, 255, 0.05), transparent 62%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body[data-md-color-scheme="slate"] {
  background-image:
    radial-gradient(42rem 30rem at 10% -6%, rgba(66, 165, 245, 0.1), transparent 62%),
    radial-gradient(38rem 28rem at 96% 4%, rgba(0, 188, 212, 0.07), transparent 62%),
    radial-gradient(46rem 34rem at 52% 112%, rgba(149, 117, 205, 0.08), transparent 62%);
}

/* Home hero — logo beside title on a soft branded gradient panel */
.md-typeset .ra-hero {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0.4rem 0 1.6rem;
  padding: 1.5rem 1.7rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.6rem;
  background:
    radial-gradient(ellipse at top right, rgba(25, 118, 210, 0.1), transparent 55%),
    linear-gradient(135deg, rgba(25, 118, 210, 0.06), rgba(0, 172, 193, 0.04) 60%, transparent);
}

.md-typeset .ra-hero__logo {
  flex: 0 0 auto;
  width: 5.2rem;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(25, 118, 210, 0.3));
}

.md-typeset .ra-hero__body > h1 {
  margin: 0 0 0.45em;
}

.md-typeset .ra-hero__body > p {
  margin: 0.35em 0;
}

.md-typeset .ra-hero__body > p:first-of-type {
  font-size: 0.85rem;
  line-height: 1.5;
}

.md-typeset .ra-hero__body .ra-cta {
  margin: 0.9rem 0 0;
}

.md-typeset .ra-hero .md-button {
  padding: 0.45em 1.2em;
  font-size: 0.64rem;
}

@media screen and (max-width: 44.9375em) {
  .md-typeset .ra-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }
}

[data-md-color-scheme="slate"] .md-typeset .ra-hero {
  background:
    radial-gradient(ellipse at top right, rgba(66, 165, 245, 0.12), transparent 55%),
    linear-gradient(135deg, rgba(66, 165, 245, 0.08), transparent 65%);
}

/* Call-to-action button row (home page ending) */
.md-typeset .ra-cta {
  margin: 1rem 0;
}

.md-typeset .ra-cta p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}

.md-typeset .ra-cta .md-button {
  margin: 0;
}

/* Sidebar sections: collapsed by default, solid expander triangle on the
   left of the label (kubernetes.io-style) instead of a right chevron */
.md-nav__item--nested > .md-nav__toggle ~ label.md-nav__link {
  cursor: pointer;
  font-weight: 600;
  justify-content: flex-start;
  gap: 0.35rem;
}

.md-nav__item--nested > .md-nav__toggle ~ label.md-nav__link .md-nav__icon,
.md-nav__item--nested > .md-nav__toggle ~ .md-nav__container label.md-nav__link .md-nav__icon {
  order: -1;
  float: none;
  flex: 0 0 auto;
  width: 0;
  height: 0;
  margin: 0;
  margin-inline: 0;
  border-left: 0.3rem solid currentColor;
  border-top: 0.24rem solid transparent;
  border-bottom: 0.24rem solid transparent;
  border-right: 0;
  transition: transform 0.15s ease;
}

.md-nav__item--nested > .md-nav__toggle ~ label.md-nav__link .md-nav__icon::after,
.md-nav__item--nested > .md-nav__toggle ~ .md-nav__container label.md-nav__link .md-nav__icon::after {
  display: none;
}

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

/* Index-page items: toggle label moves to the left of the title link */
.md-nav__item--nested > .md-nav__toggle ~ .md-nav__container {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.md-nav__item--nested > .md-nav__toggle ~ .md-nav__container > label.md-nav__link {
  order: -1;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

/* Sidebar section headers: bigger, bold, coloured, with a colourful icon
   hanging slightly into the left gutter so titles align with menu items */
.md-nav--primary .md-nav__item--section > label.md-nav__link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #283593;
}

[data-md-color-scheme="slate"] .md-nav--primary .md-nav__item--section > label.md-nav__link {
  color: #9fa8da;
}

.rebash-nav-section-icon {
  flex: 0 0 auto;
  display: inline-flex;
  margin-left: -0.7rem;
}

/* Room for the hanging section icons so they never clip at the edge */
.md-sidebar--primary .md-nav--primary > .md-nav__list {
  padding-left: 0.8rem;
}

.rebash-nav-section-icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* Align all sidebar titles at the same column: plain links get padding
   equal to the expander triangle (0.3rem) plus its gap (0.35rem) */
.md-nav--primary a.md-nav__link {
  padding-left: 0.65rem;
}

/* Links that already sit after a reordered toggle label need no extra pad */
.md-nav--primary .md-nav__container > a.md-nav__link {
  padding-left: 0;
}

/* Keep sidebar scrollbars neutral grey (no blue accent while scrolling) */
.md-sidebar__scrollwrap:hover,
.md-sidebar__scrollwrap:focus-within {
  scrollbar-color: var(--md-default-fg-color--lighter) #0000;
}

.md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover,
.md-sidebar__scrollwrap:hover::-webkit-scrollbar-thumb,
.md-sidebar__scrollwrap:focus-within::-webkit-scrollbar-thumb {
  background-color: var(--md-default-fg-color--lighter);
}

/* Divider lines between the sidebars and the page body */
@media screen and (min-width: 76.25em) {
  .md-content {
    border-left: 1px solid var(--md-default-fg-color--lightest);
    border-right: 1px solid var(--md-default-fg-color--lightest);
  }
}

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

.rebash-hero--home {
  padding: 3.5rem 0 6.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(13, 71, 161, 0.55) 0%, transparent 50%),
    linear-gradient(145deg, #1e88e5 0%, #1565c0 48%, #0d47a1 100%);
}

.rebash-hero__glow {
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 70%);
  pointer-events: none;
  animation: rebash-hero-glow 10s ease-in-out infinite alternate;
}

.rebash-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 85%);
  pointer-events: none;
  opacity: 0.55;
}

@keyframes rebash-hero-glow {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
  to { transform: translate3d(-4%, -6%, 0) scale(1.08); opacity: 1; }
}

.rebash-hero__inner {
  position: relative;
  z-index: 1;
  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: clamp(2.35rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 1rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.rebash-hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  opacity: 0.94;
  max-width: 40rem;
  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;
  fill: currentColor;
}

.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 .rebash-roadmap-wrap {
  margin: 0.75rem 0 0;
}

.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;
  fill: currentColor;
}

.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--quizzes .rebash-path-card__banner {
  background: linear-gradient(135deg, #5c6bc0 0%, #283593 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;
}

.rebash-path-card--quizzes .rebash-path-card__topics .rebash-path-card__topic {
  background: rgba(92, 107, 192, 0.12);
  color: #3949ab;
}

/* 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;
}

/* Legal links under copyright */
.rebash-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  line-height: 1.4;
}

.rebash-footer-legal a {
  color: var(--md-footer-fg-color--lighter, inherit);
  text-decoration: none;
}

.rebash-footer-legal a:hover,
.rebash-footer-legal a:focus-visible {
  color: var(--md-footer-fg-color, inherit);
  text-decoration: underline;
}

.rebash-footer-legal__sep {
  opacity: 0.55;
  user-select: none;
}

/* Architecture diagrams — rounded frame hugs content, not the full column */
.md-typeset .mermaid,
.md-typeset figure.rebash-diagram {
  display: table;
  width: auto;
  max-width: 100%;
  margin: 1.75rem auto;
  padding: 0.85rem 1rem;
  overflow: auto;
  background: var(--md-default-bg-color, #fff);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  text-align: center;
  box-sizing: border-box;
}

/* Static architecture SVGs referenced as Markdown images — stop tall/narrow
   diagrams from scaling to full column width and dominating the viewport */
.md-typeset p > img[src*="/assets/images/"][src$=".svg"],
.md-typeset p > img[src*="assets/images/"][src$=".svg"] {
  display: block;
  max-width: min(100%, 42rem);
  max-height: min(52vh, 26rem);
  width: auto;
  height: auto;
  margin: 1.25rem auto;
  object-fit: contain;
}

[data-md-color-scheme="slate"] .md-typeset .mermaid,
[data-md-color-scheme="slate"] .md-typeset figure.rebash-diagram {
  background: var(--md-default-bg-color, #1e293b);
  border-color: rgba(71, 85, 105, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Outer SVG — scale by width; avoid crushing tall trees with a low max-height */
.md-typeset figure.rebash-diagram > svg {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto;
}

/* Hierarchy trees — site typography, CSS connectors (not monospace) */
.md-typeset figure.rebash-tree-diagram {
  text-align: left;
  padding: 1.1rem 1.35rem 1.2rem;
}

.md-typeset figure.rebash-tree-diagram .rebash-tree-title {
  margin: 0 0 0.65rem;
  padding: 0;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--md-typeset-color);
  line-height: 1.35;
}

.md-typeset figure.rebash-tree-diagram ul.rebash-tree {
  list-style: none !important;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--md-typeset-color);
}

.md-typeset figure.rebash-tree-diagram ul.rebash-tree ul {
  list-style: none !important;
  margin: 0.15rem 0 0.35rem;
  padding: 0 0 0 1.15rem;
  border-left: 2px solid rgba(148, 163, 184, 0.45);
}

.md-typeset figure.rebash-tree-diagram ul.rebash-tree li {
  margin: 0;
  padding: 0.28rem 0 0.28rem 0.85rem;
  position: relative;
  font-weight: 500;
  list-style: none !important;
}

.md-typeset figure.rebash-tree-diagram ul.rebash-tree li::marker {
  content: none;
}

.md-typeset figure.rebash-tree-diagram ul.rebash-tree li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 0.65rem;
  border-top: 2px solid rgba(148, 163, 184, 0.45);
}

.md-typeset figure.rebash-tree-diagram > ul.rebash-tree > li {
  padding-left: 0;
  font-weight: 600;
  font-size: 0.98rem;
}

.md-typeset figure.rebash-tree-diagram > ul.rebash-tree > li::before {
  display: none;
}

.md-typeset figure.rebash-tree-diagram ul.rebash-tree li .rebash-tree-note {
  display: inline;
  margin-left: 0.35rem;
  font-weight: 400;
  font-size: 0.88em;
  color: var(--md-default-fg-color--light, #64748b);
}

[data-md-color-scheme="slate"] .md-typeset figure.rebash-tree-diagram ul.rebash-tree ul,
[data-md-color-scheme="slate"] .md-typeset figure.rebash-tree-diagram ul.rebash-tree li::before {
  border-color: rgba(100, 116, 139, 0.55);
}

.md-typeset .mermaid > svg {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  max-height: min(62vh, 32rem) !important;
  height: auto !important;
  margin: 0 auto;
}

.md-typeset figure.rebash-diagram svg text,
.md-typeset figure.rebash-diagram svg tspan {
  font-family: "Source Sans Pro", Roboto, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Homepage CTA row */
.md-typeset .rebash-home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.md-typeset .rebash-home-cta .rebash-cta {
  margin: 0;
}

/* ——— Homepage visual sections ——— */
.rebash-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin: -3.25rem auto 0.5rem;
  padding: 0 0.5rem;
}

@media screen and (min-width: 768px) {
  .rebash-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0;
  }
}

.rebash-stats__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem 1.15rem;
  border-radius: 0.85rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  background: var(--md-default-bg-color);
  box-shadow: 0 10px 28px rgba(13, 71, 161, 0.1);
}

.rebash-stats__value {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--rebash-blue-dark);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.rebash-hero--home + .rebash-stats {
  animation: rebash-stats-rise 0.7s ease 0.15s both;
}

.rebash-page-hero + .rebash-stats {
  position: relative;
  z-index: 2;
  margin: -2.75rem auto 0.5rem;
}

@keyframes rebash-stats-rise {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: none; }
}

.rebash-stats__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--md-default-fg-color--light);
}

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

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

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

.rebash-audience-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  background: var(--md-default-bg-color);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rebash-audience-card:hover {
  transform: translateY(-3px);
  border-color: rgba(25, 118, 210, 0.35);
  box-shadow: 0 12px 28px rgba(25, 118, 210, 0.12);
}

.rebash-audience-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.2rem;
  border-radius: 0.65rem;
  background: rgba(25, 118, 210, 0.1);
  color: var(--rebash-blue-dark);
}

.rebash-audience-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.rebash-audience-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

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

.rebash-audience-card__link {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rebash-blue);
}

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

.rebash-goal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

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

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

.rebash-goal-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  background: var(--md-default-bg-color);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.rebash-goal-card--featured {
  border-color: rgba(25, 118, 210, 0.45);
  box-shadow: 0 8px 24px rgba(25, 118, 210, 0.12);
  background:
    linear-gradient(var(--md-default-bg-color), var(--md-default-bg-color)) padding-box,
    linear-gradient(135deg, #42a5f5, #1565c0) border-box;
  border: 2px solid transparent;
}

.rebash-goal-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.rebash-goal-card__level {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rebash-goal-card__level--beginner {
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
}

.rebash-goal-card__level--intermediate {
  background: rgba(25, 118, 210, 0.12);
  color: #1565c0;
}

.rebash-goal-card__level--advanced {
  background: rgba(245, 124, 0, 0.14);
  color: #ef6c00;
}

.rebash-goal-card__level--expert {
  background: rgba(69, 90, 100, 0.14);
  color: #37474f;
}

.rebash-goal-card__time {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--md-default-fg-color--lighter);
  white-space: nowrap;
}

.rebash-goal-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

.rebash-goal-card__text {
  margin: 0;
  flex: 1;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--md-default-fg-color--light);
}

.rebash-goal-card__tech {
  margin: 0.15rem 0 0;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--md-default-fg-color--lighter);
}

.rebash-goal-card__link {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rebash-blue);
}

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

.rebash-section__more {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.rebash-section__more a {
  color: var(--rebash-blue);
  text-decoration: none;
}

.rebash-section__more a:hover {
  color: var(--rebash-blue-dark);
  text-decoration: underline;
}

.rebash-section--journey {
  text-align: center;
}

.rebash-section--journey .rebash-section__header {
  text-align: left;
}

.rebash-journey {
  margin: 0 0 1.75rem;
  padding: 1.5rem 1.25rem 1.35rem;
  border-radius: 1rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  background:
    radial-gradient(ellipse at top left, rgba(25, 118, 210, 0.07) 0%, transparent 45%),
    radial-gradient(ellipse at bottom right, rgba(13, 71, 161, 0.05) 0%, transparent 50%),
    var(--md-default-bg-color);
  box-shadow: 0 10px 28px rgba(13, 71, 161, 0.07);
}

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

.md-typeset .rebash-journey__rail,
.md-typeset .rebash-journey__rail > li {
  list-style: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
}

@media screen and (min-width: 760px) {
  .rebash-journey {
    padding: 1.75rem 1.5rem 1.5rem;
  }

  .rebash-journey__rail {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    align-items: start;
  }
}

.rebash-journey__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  padding: 0 0 0 3.5rem;
}

@media screen and (min-width: 760px) {
  .rebash-journey__step {
    align-items: center;
    text-align: center;
    padding: 0 0.4rem;
  }
}

/* Vertical connector (mobile) */
.rebash-journey__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 2.55rem;
  bottom: -1.25rem;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--rebash-blue) 0%,
    color-mix(in srgb, var(--rebash-blue) 25%, transparent) 100%
  );
  opacity: 0.55;
}

@media screen and (min-width: 760px) {
  .rebash-journey__step:not(:last-child)::before {
    left: calc(50% + 1.35rem);
    right: calc(-50% + 1.35rem);
    top: 1.15rem;
    bottom: auto;
    width: auto;
    height: 2px;
    background: repeating-linear-gradient(
      90deg,
      var(--rebash-blue) 0 5px,
      transparent 5px 12px
    );
    opacity: 0.7;
  }
}

.rebash-journey__badge {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, #1e88e5 0%, #0d47a1 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(25, 118, 210, 0.28);
  z-index: 1;
}

@media screen and (min-width: 760px) {
  .rebash-journey__badge {
    position: relative;
    left: auto;
    margin-bottom: 0.65rem;
  }
}

.rebash-journey__step--finish .rebash-journey__badge {
  background: linear-gradient(145deg, #43a047 0%, #1b5e20 100%);
  box-shadow: 0 6px 16px rgba(46, 125, 50, 0.28);
}

.rebash-journey__icon {
  display: flex;
  width: 1.2rem;
  height: 1.2rem;
}

.rebash-journey__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.rebash-journey--getting-started .rebash-journey__icon {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.rebash-journey--getting-started .rebash-journey__step--finish .rebash-journey__icon {
  font-size: 0.95rem;
}

.rebash-journey__num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rebash-blue);
}

.rebash-journey__step--finish .rebash-journey__num {
  color: #2e7d32;
}

.rebash-journey__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--md-default-fg-color);
}

.rebash-journey__hint {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--md-default-fg-color--light);
}

.rebash-philosophy {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rebash-philosophy li {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(25, 118, 210, 0.08);
  color: var(--rebash-blue-dark);
  font-size: 0.82rem;
}

.rebash-philosophy li strong {
  font-weight: 700;
}

.rebash-philosophy li + li {
  position: relative;
}

.rebash-philosophy li + li::before {
  content: "→";
  position: absolute;
  left: -0.85rem;
  color: var(--rebash-blue);
  opacity: 0.4;
  font-weight: 600;
  pointer-events: none;
}

.md-typeset .rebash-philosophy--getting-started {
  margin: 0.5rem 0 1rem;
  padding: 0;
  list-style: none;
}

.md-typeset .rebash-philosophy--getting-started li {
  list-style: none;
  margin: 0;
}

/* Compact learning flow (Getting Started) */
.md-typeset .rebash-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.75rem 0 0.85rem;
  padding: 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  background:
    radial-gradient(ellipse at top left, rgba(25, 118, 210, 0.06) 0%, transparent 55%),
    var(--md-default-bg-color);
  box-shadow: 0 4px 16px rgba(13, 71, 161, 0.06);
}

@media screen and (min-width: 720px) {
  .md-typeset .rebash-flow-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.md-typeset .rebash-flow-grid__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.35rem;
  text-align: center;
}

.md-typeset .rebash-flow-grid__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.45rem;
  background: linear-gradient(145deg, #1e88e5 0%, #0d47a1 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.md-typeset .rebash-flow-grid__step--finish .rebash-flow-grid__num {
  background: linear-gradient(145deg, #43a047 0%, #1b5e20 100%);
}

.md-typeset .rebash-flow-grid__label {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--rebash-blue-dark);
}

.md-typeset .rebash-flow-grid__step--finish .rebash-flow-grid__label {
  color: #2e7d32;
}

[data-md-color-scheme="slate"] .md-typeset .rebash-flow-grid {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

[data-md-color-scheme="slate"] .md-typeset .rebash-flow-grid__label {
  color: #90caf9;
}

.md-typeset .rebash-flow-grid + p {
  margin-top: 0;
}

.md-typeset .rebash-flow-grid + p + h2 {
  margin-top: 1.75rem;
}

[data-md-color-scheme="slate"] .rebash-journey {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

[data-md-color-scheme="slate"] .rebash-journey__step:not(:last-child)::before {
  opacity: 0.85;
}

/* Technologies catalog */
.rebash-tech-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
}

.rebash-tech-filter__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--md-default-fg-color--lightest);
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.rebash-tech-filter__btn:hover {
  border-color: rgba(25, 118, 210, 0.45);
  color: var(--rebash-blue-dark);
}

.rebash-tech-filter__btn.is-active {
  background: var(--rebash-blue);
  border-color: var(--rebash-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(25, 118, 210, 0.22);
}

.rebash-tech-category {
  margin-bottom: 2.25rem;
}

.rebash-tech-category:last-child {
  margin-bottom: 0;
}

.rebash-tech-category__header {
  margin-bottom: 1rem;
}

.rebash-tech-category__title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--md-default-fg-color);
}

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

.rebash-tech-card--planned,
.rebash-tech-card--stub {
  opacity: 0.92;
}

.rebash-tech-card__status {
  text-transform: capitalize;
}

.rebash-tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.rebash-tech-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--md-default-fg-color--lightest);
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.rebash-tech-chip:hover {
  border-color: rgba(25, 118, 210, 0.45);
  color: var(--rebash-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(25, 118, 210, 0.1);
}

.rebash-section--why {
  padding-bottom: 4rem;
}

.rebash-why {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media screen and (min-width: 900px) {
  .rebash-why {
    grid-template-columns: 1.2fr 0.9fr;
    gap: 1.75rem;
  }
}

.rebash-why__list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.rebash-why__list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--md-default-fg-color);
}

.rebash-why__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--rebash-blue);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.rebash-why__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.75rem 1.6rem;
  border-radius: 1rem;
  background:
    radial-gradient(ellipse at top right, rgba(255, 255, 255, 0.55) 0%, transparent 50%),
    linear-gradient(145deg, #e3f2fd 0%, #bbdefb 100%);
  border: 1px solid rgba(25, 118, 210, 0.18);
  box-shadow: 0 12px 32px rgba(25, 118, 210, 0.1);
}

.rebash-why__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rebash-blue-dark);
  opacity: 0.85;
}

.rebash-why__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--rebash-blue-dark);
}

.rebash-why__text {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--rebash-grey);
}

/* Scroll reveal */
.rebash-reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.rebash-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .rebash-hero__glow {
    animation: none;
  }

  .rebash-hero--home + .rebash-stats {
    animation: none;
  }

  .rebash-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

[data-md-color-scheme="slate"] .rebash-stats__item,
[data-md-color-scheme="slate"] .rebash-audience-card,
[data-md-color-scheme="slate"] .rebash-goal-card,
[data-md-color-scheme="slate"] .rebash-tech-chip {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

[data-md-color-scheme="slate"] .rebash-why__panel {
  background:
    radial-gradient(ellipse at top right, rgba(66, 165, 245, 0.18) 0%, transparent 50%),
    linear-gradient(145deg, #1a237e 0%, #0d47a1 100%);
  border-color: rgba(144, 202, 249, 0.25);
}

[data-md-color-scheme="slate"] .rebash-why__eyebrow,
[data-md-color-scheme="slate"] .rebash-why__title {
  color: #e3f2fd;
}

[data-md-color-scheme="slate"] .rebash-why__text {
  color: rgba(227, 242, 253, 0.88);
}

[data-md-color-scheme="slate"] .rebash-goal-card__level--expert {
  background: rgba(176, 190, 197, 0.18);
  color: #cfd8dc;
}

.rebash-roadmap-wrap {
  margin: 1rem 0 0.75rem;
}

.md-typeset .rebash-roadmap-wrap + .admonition {
  margin-top: 0.85rem;
}

.rebash-roadmap {
  margin: 0;
}

.rebash-roadmap-wrap .rebash-roadmap {
  margin: 0;
}

.rebash-roadmap__canvas {
  position: relative;
  width: min(100%, 16.5rem);
  margin: 0 auto;
  padding: 0.25rem 0 0.5rem;
}

.rebash-roadmap__path {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.rebash-roadmap__stroke {
  fill: none;
  stroke: color-mix(in srgb, var(--md-default-fg-color) 18%, transparent);
  stroke-width: 16;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rebash-roadmap__dash {
  fill: none;
  stroke: var(--rebash-blue);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 5 8;
  opacity: 0.95;
}

.rebash-roadmap__stops {
  position: relative;
  z-index: 1;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  align-items: stretch;
}

.md-typeset .rebash-roadmap__stops,
.md-typeset .rebash-roadmap__stops > li {
  list-style: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.rebash-roadmap__stops > li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rebash-roadmap__stops > li::before,
.rebash-roadmap__stops > li::marker {
  content: none !important;
  display: none !important;
}

.rebash-roadmap__marker {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.rebash-roadmap__marker span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--rebash-blue);
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.rebash-roadmap__marker--finish span {
  background: var(--rebash-blue-dark);
}

.rebash-roadmap__marker--finish span::before {
  content: "";
  width: 0.45rem;
  height: 0.58rem;
  background: currentColor;
  clip-path: polygon(0 0, 100% 25%, 100% 55%, 0 80%);
  opacity: 0.95;
}

.rebash-roadmap__stop {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
}

.rebash-roadmap__stop--left {
  justify-content: flex-start;
  padding-left: 1.1rem;
}

.rebash-roadmap__stop--right {
  justify-content: flex-end;
  padding-right: 1.1rem;
}

a.rebash-roadmap__card {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem 0.35rem 0.35rem;
  border-radius: 999px;
  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),
    0 4px 12px rgba(0, 0, 0, 0.05);
  color: var(--md-default-fg-color);
  text-decoration: none !important;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

a.rebash-roadmap__card:hover,
a.rebash-roadmap__card:focus-visible {
  border-color: var(--rebash-blue);
  box-shadow:
    0 2px 4px rgba(25, 118, 210, 0.12),
    0 8px 16px rgba(25, 118, 210, 0.14);
  transform: translateY(-1px);
  color: var(--md-default-fg-color);
}

.rebash-roadmap__icon {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  text-transform: uppercase;
}

.rebash-roadmap__icon--linux::after { content: "Lx"; }
.rebash-roadmap__icon--shell::after { content: "Sh"; }
.rebash-roadmap__icon--python::after { content: "Py"; }
.rebash-roadmap__icon--net::after { content: "Net"; }
.rebash-roadmap__icon--aws::after { content: "Aws"; }
.rebash-roadmap__icon--git::after { content: "Git"; }
.rebash-roadmap__icon--cicd::after { content: "CI"; }
.rebash-roadmap__icon--docker::after { content: "Dk"; }
.rebash-roadmap__icon--k8s::after { content: "K8"; }
.rebash-roadmap__icon--tf::after { content: "Tf"; }
.rebash-roadmap__icon--mon::after { content: "Mo"; }
.rebash-roadmap__icon--sec::after { content: "Se"; }
.rebash-roadmap__icon--prj::after { content: "Pr"; }
.rebash-roadmap__icon--az::after { content: "Az"; }
.rebash-roadmap__icon--gcp::after { content: "Gc"; }
.rebash-roadmap__icon--arch::after { content: "Ar"; }

.rebash-roadmap__icon--linux { background: linear-gradient(135deg, #fb8c00, #ef6c00); }
.rebash-roadmap__icon--shell { background: linear-gradient(135deg, #43a047, #2e7d32); }
.rebash-roadmap__icon--python { background: linear-gradient(135deg, #42a5f5, #1565c0); }
.rebash-roadmap__icon--net { background: linear-gradient(135deg, #5c6bc0, #3949ab); }
.rebash-roadmap__icon--aws { background: linear-gradient(135deg, #ffa726, #ef6c00); }
.rebash-roadmap__icon--git { background: linear-gradient(135deg, #ef5350, #c62828); }
.rebash-roadmap__icon--cicd { background: linear-gradient(135deg, #fc6d26, #e24329); }
.rebash-roadmap__icon--docker { background: linear-gradient(135deg, #29b6f6, #0277bd); }
.rebash-roadmap__icon--k8s { background: linear-gradient(135deg, #7e57c2, #4527a0); }
.rebash-roadmap__icon--tf { background: linear-gradient(135deg, #7c4dff, #5e35b1); }
.rebash-roadmap__icon--mon { background: linear-gradient(135deg, #26a69a, #00695c); }
.rebash-roadmap__icon--sec { background: linear-gradient(135deg, #78909c, #37474f); }
.rebash-roadmap__icon--prj { background: linear-gradient(135deg, #8d6e63, #4e342e); }
.rebash-roadmap__icon--az { background: linear-gradient(135deg, #42a5f5, #1565c0); }
.rebash-roadmap__icon--gcp { background: linear-gradient(135deg, #66bb6a, #2e7d32); }
.rebash-roadmap__icon--arch { background: linear-gradient(135deg, #ab47bc, #6a1b9a); }

.rebash-roadmap__title {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--md-default-fg-color);
}

[data-md-color-scheme="slate"] a.rebash-roadmap__card {
  background: color-mix(in srgb, var(--md-default-bg-color) 88%, #fff 12%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

[data-md-color-scheme="slate"] .rebash-roadmap__stroke {
  stroke: rgba(255, 255, 255, 0.16);
}

[data-md-color-scheme="slate"] .rebash-roadmap__dash {
  stroke: #64b5f6;
}

@media screen and (max-width: 640px) {
  .rebash-roadmap__canvas {
    width: min(100%, 16.5rem);
  }

  .rebash-roadmap__stop--left {
    padding-left: 0.35rem;
  }

  .rebash-roadmap__stop--right {
    padding-right: 0.35rem;
  }
}

/* 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;
  }
}
