/* Martini Tech — topics bar, hub, breadcrumb, footer shell */

.body-martini-tech {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.tech-main {
  flex: 1 0 auto;
  padding-bottom: var(--space-8);
}

@media (min-width: 600px) {
  .tech-main:not(.tech-main--article) {
    padding-bottom: var(--space-9);
  }
}

.tech-main > .tech-container:first-child {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
}

.tech-main--glossary,
.tech-main--author {
  padding-top: var(--space-5);
}

@media (min-width: 600px) {
  .tech-main--glossary,
  .tech-main--author {
    padding-top: var(--space-6);
  }
}

.tech-main--hub {
  padding-top: 0;
}

.tech-main--hub > .tech-container:first-child,
.tech-main--glossary > .tech-container:first-child,
.tech-main--author > .tech-container:first-child,
.tech-main--search > .tech-container:first-child {
  margin-top: 0;
  padding-top: 0;
}

.tech-main--search > .tech-container:first-child {
  padding-top: var(--space-4);
}

@media (min-width: 600px) {
  .tech-main--search > .tech-container:first-child {
    padding-top: var(--space-5);
  }
}

.tech-main--hub .tech-breadcrumb,
.tech-main--glossary .tech-breadcrumb,
.tech-main--author .tech-breadcrumb,
.tech-main--search .tech-breadcrumb {
  padding: 0;
}

.tech-main--home > section:last-of-type {
  padding-bottom: 0;
}

.body-martini-tech :focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.body-martini-tech h1 {
  font-weight: 600;
  letter-spacing: -0.03em;
}

.body-martini-tech h2 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.body-martini-tech h3 {
  letter-spacing: -0.01em;
}

/* Topics bar */
.tech-topics {
  position: relative;
  height: 44px;
  background: var(--topics-bg);
  border-bottom: 1px solid var(--tech-border);
}

@media (max-width: 1023px) {
  .tech-topics {
    position: static;
    background: transparent;
    border-bottom: none;
  }
}

@media (min-width: 1024px) {
  .tech-topics {
    position: sticky;
    top: 64px;
    z-index: 40;
  }
}

.tech-topics__scroll {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
  height: 44px;
  max-width: 1232px;
  margin-inline: auto;
  padding-inline: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1023px) {
  .tech-topics__scroll {
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
  }
}

.tech-topics__scroll::-webkit-scrollbar {
  display: none;
}

.tech-topics__link {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
}

.tech-topics__link:hover,
.tech-topics__link:focus-visible {
  color: var(--blue);
  background: transparent;
  text-decoration: none;
}

.tech-topics__link:hover::after,
.tech-topics__link:focus-visible::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: var(--nav-indicator-soft);
}

.tech-topics__link[aria-current="page"],
.tech-topics__link.is-active {
  font-weight: 600;
  color: var(--blue);
  background: transparent;
}

.tech-topics__link[aria-current="page"]::after,
.tech-topics__link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: var(--blue);
}

.tech-topics__link[aria-current="page"]:hover::after,
.tech-topics__link[aria-current="page"]:focus-visible::after,
.tech-topics__link.is-active:hover::after,
.tech-topics__link.is-active:focus-visible::after {
  background: var(--blue);
}

/* Breadcrumb */
.tech-breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--tech-text-muted);
}

.body-martini-tech .tech-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--muted);
  text-decoration: none;
}

.body-martini-tech .tech-breadcrumb a:hover {
  color: var(--text);
}

.tech-breadcrumb__sep {
  margin-inline: 6px;
  color: var(--tech-text-muted);
}

.tech-breadcrumb__current {
  color: var(--tech-text-muted);
}

.tech-breadcrumb--article {
  margin: 0 0 12px;
  padding: 0;
}

.tech-breadcrumb--on-hero {
  margin: 0;
  padding: var(--space-4) 0 var(--space-3);
  color: var(--hub-hero-meta);
}

.tech-breadcrumb--on-hero a {
  color: var(--hub-hero-lede);
}

.tech-breadcrumb--on-hero a:hover {
  color: var(--hub-hero-fg);
}

.tech-breadcrumb--on-hero .tech-breadcrumb__sep,
.tech-breadcrumb--on-hero .tech-breadcrumb__current {
  color: var(--hub-hero-meta);
}

/* Hub hero */
.tech-hub-hero {
  padding: 0 0 var(--space-7);
  color: var(--hub-hero-fg);
  background-color: var(--hub-hero-bg);
  background-image:
    linear-gradient(var(--hub-hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hub-hero-grid) 1px, transparent 1px);
  background-size: 48px 48px;
}

@media (min-width: 1000px) {
  .tech-hub-hero {
    padding: 0 0 var(--space-8);
  }
}

.tech-hub-hero__grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .tech-hub-hero__grid {
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
  }
}

.tech-hub-hero__title {
  margin: 0;
  font-size: 34px;
  line-height: 40px;
  font-weight: 600;
  color: var(--hub-hero-fg);
}

@media (min-width: 768px) {
  .tech-hub-hero__title {
    font-size: 48px;
    line-height: 56px;
  }
}

.tech-hub-hero__lede {
  margin: 16px 0 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--hub-hero-lede);
}

.tech-hub-hero__resume {
  margin: 12px 0 0;
}

.tech-hub-hero__resume-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--tech-blue);
  text-decoration: none;
}

.tech-hub-hero__resume-link:hover {
  text-decoration: underline;
}

.tech-hub-hero__resume-link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.tech-hub-hero__resume-title {
  font-weight: 600;
}

.tech-hub-hero__resume-arrow {
  font-size: 1.1em;
}

.tech-hub-hero__meta {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--hub-hero-meta);
}

.tech-hub-hero__meta span {
  margin-inline: 6px;
}

.tech-hub-hero__card {
  width: 100%;
  max-width: 240px;
  min-height: 272px;
  padding: var(--space-5);
  border-radius: 20px;
  background: var(--card);
  color: var(--tech-text);
}

@media (max-width: 899px) {
  .tech-hub-hero__card {
    max-width: none;
  }
}

.tech-hub-hero__card-banner {
  border-radius: 12px;
  overflow: hidden;
  background: var(--tech-blue-soft);
}

.tech-hub-hero__card-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tech-hub-hero__progress {
  height: 6px;
  margin: 16px 0;
  border-radius: 999px;
  background: var(--tech-blue-soft);
  overflow: hidden;
}

.tech-hub-hero__progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--tech-blue);
}

.tech-pill--block {
  width: 100%;
}

.tech-hub-hero__card-banner {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
}

.tech-hub-hero__card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tech-hub-lessons__grid {
  display: block;
}

@media (max-width: 999px) {
  .tech-hub-lessons__grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
  }

  .tech-hub-lessons__aside {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
}

@media (min-width: 1024px) {
  .tech-hub-lessons__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
  }

  .tech-hub-lessons__aside {
    position: sticky;
    top: var(--tech-sticky-h, 102px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - var(--tech-sticky-h, 102px) - 24px);
    min-height: 0;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0;
    scrollbar-width: thin;
    scrollbar-color: #c9ced6 transparent;
  }

  html[data-theme="dark"] .tech-hub-lessons__aside {
    scrollbar-color: #3a404c transparent;
  }

  .tech-hub-lessons__aside::-webkit-scrollbar {
    width: 6px;
  }

  .tech-hub-lessons__aside::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
  }

  .tech-hub-lessons__aside::-webkit-scrollbar-track {
    background: transparent;
  }

  .tech-hub-lessons__aside::-webkit-scrollbar-thumb {
    background: #c9ced6;
    border-radius: 9999px;
  }

  html[data-theme="dark"] .tech-hub-lessons__aside::-webkit-scrollbar-thumb {
    background: #3a404c;
  }
}

@media (min-width: 1024px) and (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .tech-hub-lessons__aside {
    scrollbar-color: #3a404c transparent;
  }

  html:not([data-theme="light"]) .tech-hub-lessons__aside::-webkit-scrollbar-thumb {
    background: #3a404c;
  }
}

.tech-hub-side-card {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.tech-hub-side-card__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--heading);
}

.tech-hub-side-card__stat {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text);
}

.tech-hub-side-card__bar {
  height: 8px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.tech-hub-side-card__bar-fill {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
}

.tech-hub-side-card__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.tech-hub-side-card__quiz-score {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
}

.tech-hub-side-card--quiz {
  padding: var(--space-5);
}

.tech-hub-quiz__card-title {
  margin-bottom: 12px;
}

.tech-hub-quiz--show-result .tech-hub-quiz__head {
  display: none;
}

.tech-hub-quiz--show-result [data-tech-quiz-nav-active] {
  display: none;
}

.tech-hub-quiz--show-result [data-tech-quiz-nav-result]:not([hidden]) {
  display: flex;
}

.tech-hub-side-card__quiz-score {
  min-height: 1.25em;
}

.tech-hub-side-card__stat {
  min-height: 20px;
}

.tech-hub-side-card__bar {
  min-height: 8px;
}

@media (max-width: 599px) {
  .tech-hub-side-card,
  .tech-hub-side-card--quiz {
    padding: var(--space-4);
  }
}

.tech-hub-quiz__head {
  margin: 0 0 16px;
}

.tech-hub-quiz__counter {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.tech-hub-quiz__progress {
  height: 4px;
  border-radius: 999px;
  background: var(--active-bg);
  overflow: hidden;
}

.tech-hub-quiz__progress-fill {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
  transition: width 200ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .tech-hub-quiz__progress-fill {
    transition: none;
  }
}

.tech-hub-quiz__step {
  margin: 0;
}

.tech-hub-quiz__step.is-entering {
  animation: tech-quiz-step-in 200ms ease;
}

.tech-hub-quiz__step.is-leaving {
  animation: tech-quiz-step-out 200ms ease;
}

@keyframes tech-quiz-step-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }

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

@keyframes tech-quiz-step-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tech-hub-quiz__step.is-entering,
  .tech-hub-quiz__step.is-leaving {
    animation: none;
  }
}

.tech-hub-quiz__fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.tech-hub-quiz__legend {
  margin: 0 0 12px;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--heading);
}

.tech-hub-quiz__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-hub-quiz__option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  cursor: pointer;
  background: var(--card);
  transition: background-color 150ms ease, border-color 150ms ease;
}

@media (max-width: 599px) {
  .tech-hub-quiz__option {
    font-size: 16px;
  }
}

.tech-hub-quiz__option:hover {
  background: var(--surface);
}

.tech-hub-quiz__option:has(.tech-hub-quiz__input:checked) {
  border-color: var(--blue);
  background: var(--active-bg);
}

.tech-hub-quiz__option:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.tech-hub-quiz__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tech-hub-quiz__radio {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid var(--radio-border);
  border-radius: 50%;
  background: var(--card);
  box-sizing: border-box;
}

.tech-hub-quiz__radio::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.tech-hub-quiz__option:has(.tech-hub-quiz__input:checked) .tech-hub-quiz__radio {
  border-color: var(--blue);
  border-width: 6px;
}

.tech-hub-quiz__option-text {
  flex: 1;
  min-width: 0;
}

.tech-hub-quiz__option-text code,
.tech-hub-quiz__review-answer code,
.tech-hub-quiz__review-correct code,
.tech-hub-quiz__review-explain code {
  font-family: var(--tech-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 4px;
}

.tech-hub-quiz__nav,
.tech-hub-quiz__result-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin: 16px 0 0;
}

.tech-hub-quiz__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.tech-hub-quiz__result {
  padding-top: 0;
}

@media (min-width: 1024px) {
  .tech-hub-quiz__result {
    padding-top: 4px;
  }
}

.tech-hub-quiz__score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-align: center;
}

.tech-hub-quiz__ring {
  width: 88px;
  height: 88px;
  transform: rotate(-90deg);
}

.tech-hub-quiz__ring-bg {
  fill: none;
  stroke: var(--active-bg);
  stroke-width: 6;
}

.tech-hub-quiz__ring-fill {
  fill: none;
  stroke: var(--blue);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 600ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .tech-hub-quiz__ring-fill {
    transition: none;
  }
}

.tech-hub-quiz__score {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.tech-hub-quiz__score-msg {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.tech-hub-quiz__review {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-hub-quiz__review-item {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-left-color: var(--border);
  background: var(--card);
}

.tech-hub-quiz__review-item--ok {
  border-left-color: var(--quiz-ok);
}

.tech-hub-quiz__review-item--bad {
  border-left-color: var(--quiz-err);
}

.tech-hub-quiz__review-item--ok .tech-hub-quiz__review-answer--ok {
  color: var(--heading);
}

.tech-hub-quiz__review-item--bad .tech-hub-quiz__review-answer--bad {
  color: var(--quiz-err);
}

.tech-hub-quiz__review-correct {
  margin: 0 0 8px;
  padding-left: 28px;
  font-size: 14px;
  line-height: 20px;
  color: var(--heading);
}

.tech-hub-quiz__review-q {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
}

.tech-hub-quiz__review-answer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text);
}

.tech-hub-quiz__review-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.tech-hub-quiz__review-explain {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.tech-hub-quiz__review-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

@media (max-width: 599px) {
  .tech-hub-side-card--quiz .tech-hub-quiz__btn.tech-pill {
    height: 34px;
    line-height: 34px;
  }
}

/* Hub lesson outline */
.tech-hub-lessons {
  padding: var(--space-6) 0 0;
}

.tech-hub-outline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.tech-hub-outline__item {
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
  margin-top: var(--space-4);
}

.tech-hub-outline__welcome-inner {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4);
}

.tech-hub-outline__num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cat-num-bg);
  color: var(--cat-num-fg);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.tech-hub-outline__num--welcome {
  background: var(--tech-blue-soft);
  color: var(--tech-blue-dark);
  font-size: 12px;
}

.tech-main--hub[data-tech-category="ai"] .tech-hub-outline__num:not(.tech-hub-outline__num--welcome) {
  background: var(--cat-ai-accent);
  color: var(--on-primary);
}

.tech-main--hub[data-tech-category="ai"] .tech-hub-outline__num--welcome {
  background: var(--cat-ai-tint);
  color: var(--cat-ai-tint-text);
}

.tech-hub-outline__link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 20px;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background-color 150ms ease;
}

.tech-hub-outline__link:hover {
  background: var(--surface-2);
  text-decoration: none;
}

.tech-hub-outline__link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.tech-hub-outline__link:hover .tech-hub-outline__arrow {
  color: var(--blue);
  transform: translateX(2px);
}

.tech-hub-outline__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tech-hub-outline__lesson-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--heading);
}

.tech-hub-outline__desc {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tech-hub-outline__meta {
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

.tech-hub-outline__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted);
  transition:
    color 150ms ease,
    transform 150ms ease;
}

.tech-hub-outline__arrow svg {
  display: block;
}

.tech-hub-outline__link.is-complete .tech-hub-outline__num {
  background: rgba(30, 142, 62, 0.12);
  color: var(--ok);
  font-size: 0;
}

.tech-hub-outline__link.is-complete .tech-hub-outline__num::before {
  content: "";
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%231e8e3e' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

html[data-theme="dark"] .tech-hub-outline__link.is-complete .tech-hub-outline__num {
  background: rgba(76, 195, 138, 0.14);
}

html[data-theme="dark"] .tech-hub-outline__link.is-complete .tech-hub-outline__num::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%234cc38a' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .tech-hub-outline__link.is-complete .tech-hub-outline__num {
    background: rgba(76, 195, 138, 0.14);
  }

  html:not([data-theme="light"]) .tech-hub-outline__link.is-complete .tech-hub-outline__num::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%234cc38a' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  }
}

.tech-hub-outline__soon-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
  opacity: 0.72;
}

.tech-hub-outline__soon {
  font-weight: 600;
}

.tech-hub-outline__title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--heading);
}

.tech-hub-outline__welcome-text {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  max-width: 52em;
}

.tech-hub-outline__welcome-hint {
  margin: 8px 0 16px;
  font-size: 14px;
  color: var(--muted);
}

.tech-hub-practice {
  margin-top: var(--space-7);
  padding: var(--space-5);
  border: 2px solid var(--tech-border);
  border-radius: 16px;
  background: var(--card);
}

.tech-hub-practice__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.tech-hub-practice__desc {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 40em;
}

/* Footer (all routes) */
.tech-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--tech-border);
  padding: var(--space-8) 0 var(--space-6);
  background: var(--card);
}

.tech-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .tech-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
  }
}

.tech-footer__logo-link {
  display: inline-block;
  margin-bottom: 12px;
  text-decoration: none;
}

.tech-footer__logo-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--tech-text);
  letter-spacing: -0.02em;
}

.tech-footer__tagline {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tech-text-muted);
  max-width: 28em;
}

.tech-footer__col-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tech-text);
}

.tech-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tech-footer__links li {
  margin-bottom: 12px;
}

.tech-footer__links a {
  font-size: 14px;
  color: var(--tech-text-mid);
  text-decoration: none;
}

.tech-footer__links a:hover {
  color: var(--tech-blue);
}

.tech-footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--tech-border);
}

.tech-footer__bottom p {
  margin: 0;
  font-size: 13px;
  color: var(--tech-text-muted);
}

.tech-footer__bottom a {
  color: var(--tech-text-muted);
  text-decoration: none;
}

.tech-footer__bottom a:hover {
  color: var(--tech-blue);
}

.tech-pill--arrow::after {
  content: "→";
  margin-left: 6px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.tech-pill--arrow:hover::after {
  transform: none;
}

.tech-callout {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  border: 0;
  border-radius: 0 8px 8px 0;
}

.tech-callout__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tech-text);
}

.tech-callout__icon {
  display: inline-flex;
  flex-shrink: 0;
}

.tech-callout p:last-child {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--tech-text-mid);
}

.tech-callout--note {
  --tech-callout-accent: var(--blue);
  background-color: var(--callout-note-bg);
}

.tech-callout--tip {
  --tech-callout-accent: var(--quiz-ok);
  background-color: var(--callout-tip-bg);
}

.tech-callout--caution {
  --tech-callout-accent: var(--caution);
  background-color: var(--callout-caution-bg);
}
