/*
  Tab 08 — Timeline/Stage Tabs — standalone HTML/CSS/JS implementation.
  No build step, no framework, no external dependency: copy index.html,
  this file, and script.js into any project as-is. The green accent is
  used deliberately here, and nowhere else across Tab 01–10 — the one
  place the brand color marks progression on the rail.
*/

:root {
  --card-accent: #39ff14;
  --card-fg: oklch(0.145 0 0);
  --card-muted: oklch(0.5 0 0);
  --card-border: oklch(0.9 0 0);
}

.stage-tabs {
  width: 100%;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
}

.stage-tabs__rail {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.stage-tabs__rail::-webkit-scrollbar {
  display: none;
}

.stage-tabs__tab {
  display: flex;
  flex: 1 1 0%;
  min-width: 5rem;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  background: none;
  font-family: inherit;
  padding: 0.25rem;
  cursor: pointer;
  outline: none;
}

.stage-tabs__tab:focus-visible {
  outline: 2px solid var(--card-accent);
  outline-offset: 2px;
}

.stage-tabs__marker-wrap {
  position: relative;
  display: flex;
  height: 0.75rem;
  align-items: center;
  justify-content: center;
}

.stage-tabs__marker-wrap::before,
.stage-tabs__marker-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 2px;
  width: 50%;
  background-color: var(--card-border);
  transform: translateY(-50%);
}

.stage-tabs__marker-wrap::before {
  left: 0;
}

.stage-tabs__marker-wrap::after {
  right: 0;
}

.stage-tabs__tab:first-child .stage-tabs__marker-wrap::before {
  display: none;
}

.stage-tabs__tab:last-child .stage-tabs__marker-wrap::after {
  display: none;
}

.stage-tabs__marker {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--card-border);
  transition:
    width 200ms ease-out,
    height 200ms ease-out,
    background-color 200ms ease-out,
    box-shadow 200ms ease-out;
}

.stage-tabs__marker--active {
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--card-accent);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--card-accent) 20%, transparent);
}

.stage-tabs__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--card-muted);
  white-space: nowrap;
  transition:
    font-weight 200ms,
    color 200ms ease-out;
}

.stage-tabs__label--active {
  font-weight: 600;
  color: var(--card-fg);
}

.stage-tabs__meta {
  font-size: 0.6875rem;
  color: var(--card-accent);
}

.stage-tabs__panel {
  margin-top: 1.25rem;
  border-top: 1px solid var(--card-border);
  padding-top: 1.25rem;
  animation: stage-tabs-panel-in 220ms ease-out both;
}

.stage-tabs__panel[hidden] {
  display: none;
}

.stage-tabs__panel h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--card-fg);
}

.stage-tabs__panel p {
  margin: 0.375rem 0 0;
  max-width: 28rem;
  font-size: 0.875rem;
  color: var(--card-muted);
}

@keyframes stage-tabs-panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-tabs__marker {
    transition: none;
  }

  .stage-tabs__panel {
    animation: none;
  }
}

/*
  Page layout — the canvas this resource is presented on. Adjust or drop it
  when placing the resource inside your own layout.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(to bottom, #fafafa, #f4f4f5);
}
.tab08-layout {
  display: flex;
  min-height: 16rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2.5rem;
}
.tab08-layout__panel {
  width: 100%;
  max-width: 28rem;
  border: 1px solid oklch(0.9 0 0);
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.5rem;
}
