/* Updates panel tabs */
.updates-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--border);
  margin: 0.15rem 0 1.35rem;
}

.updates-tabs__btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-card-muted);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.updates-tabs__btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.updates-tabs__btn[aria-selected='true'] {
  background: var(--noribel-blue-dim);
  border-color: rgba(91, 168, 212, 0.45);
  color: var(--noribel-blue-dark);
}

.updates-tab-panel[hidden] {
  display: none !important;
}

/* Timeline — align date rail, dots, and cards */
#updates.panel {
  max-width: 920px;
}

.updates-timeline {
  margin-top: 0;
}

.updates-release {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  column-gap: 1.35rem;
  row-gap: 0.85rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e8edf3;
}

.updates-release:last-child {
  border-bottom: none;
  padding-bottom: 0.35rem;
}

.updates-release--latest {
  padding-top: 0.15rem;
}

.updates-release__rail {
  --updates-rail-x: 0.2rem;
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 6.25rem;
  align-self: stretch;
  box-sizing: border-box;
}

.updates-release__rail::before {
  content: '';
  position: absolute;
  right: var(--updates-rail-x);
  top: 0.55rem;
  bottom: -1.5rem;
  width: 2px;
  transform: translateX(50%);
  background: linear-gradient(180deg, #cbd5e1, #e2e8f0);
}

.updates-release:last-child .updates-release__rail::before {
  bottom: 0.35rem;
}

.updates-release__date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  padding-right: 1.15rem;
  position: relative;
  text-align: right;
  width: 100%;
  box-sizing: border-box;
}

.updates-release__date::after {
  content: '';
  position: absolute;
  right: var(--updates-rail-x);
  top: 0.4rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  transform: translateX(50%);
  background: #fff;
  border: 2px solid #94a3b8;
  box-shadow: 0 0 0 3px #f8fafc;
  z-index: 1;
}

.updates-release--latest .updates-release__date::after {
  border-color: var(--noribel-blue-dark, #5ba8d4);
  background: var(--noribel-blue, #8ec7ed);
  box-shadow: 0 0 0 4px #8ec7ed40;
}

.updates-release__date-day {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.updates-release__date-mon {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  white-space: nowrap;
}

.updates-release__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.updates-release__dateline {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: #64748b;
}

.updates-hero {
  background: linear-gradient(135deg, #f8fbff, #f1f7fd);
  border: 1px solid #dbe8f5;
  border-radius: 14px;
  padding: 1.05rem 1.2rem 1.1rem;
  margin: 0;
}

.updates-hero__label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5ba8d4;
}

.updates-hero__summary {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: #0f172a;
}

.updates-hero__highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.4rem 1rem;
}

.updates-hero__highlights li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #334155;
}

.updates-hero__highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--noribel-blue-dark, #5ba8d4);
}

.updates-topic {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  padding: 1rem 1.15rem 1.05rem;
  margin: 0;
}

.updates-release--latest .updates-topic {
  border-color: #dbe8f5;
  box-shadow: 0 1px #0f172a08;
}

.updates-topic__head {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem 0.85rem;
  margin: 0 0 0.75rem;
  padding: 0 0 0.65rem;
  border-bottom: 1px solid #f1f5f9;
}

.updates-topic__title {
  margin: 0;
  flex: 1 1 14rem;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1e293b;
}

.updates-topic__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  align-items: center;
  flex: 0 1 auto;
  max-width: 100%;
}

.updates-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  background: color-mix(in srgb, var(--tag-color, #64748b) 12%, transparent);
  color: var(--tag-color, #64748b);
  border: 1px solid color-mix(in srgb, var(--tag-color, #64748b) 28%, transparent);
  white-space: nowrap;
}

.updates-topic__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.updates-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.2rem;
  margin: 0;
  padding-left: 0.85rem;
  border-left: 2px solid #e2e8f0;
}

.updates-item__head {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

.updates-item__text {
  font-size: 0.84rem;
  line-height: 1.55;
  color: #475569;
}

.updates-item--plain .updates-item__text {
  color: #334155;
}

@media (max-width: 720px) {
  .updates-release {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 1.2rem 0;
  }

  .updates-release__rail {
    width: auto;
    justify-content: flex-start;
  }

  .updates-release__rail::before,
  .updates-release__date::after {
    display: none;
  }

  .updates-release__date {
    flex-direction: row;
    align-items: baseline;
    gap: 0.45rem;
    padding-right: 0;
    text-align: left;
    width: auto;
  }

  .updates-topic__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .updates-topic__tags {
    justify-content: flex-start;
  }

  .updates-hero__highlights {
    grid-template-columns: 1fr;
  }
}

/* Feature map — sitemap overview */
.feature-map__lede {
  margin: 0 0 1.25rem;
  max-width: 42rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.feature-map__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem 1.25rem;
  align-items: stretch;
}

.feature-map__section {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: 0 1px 0 rgba(15, 18, 35, 0.03);
  box-sizing: border-box;
}

.feature-map__section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
}

.feature-map__section-intro {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.feature-map__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 auto;
}

.feature-map__list li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text);
}

.feature-map__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--noribel-blue, #8ec7ed);
}

@media (max-width: 640px) {
  .feature-map__nav {
    grid-template-columns: 1fr;
  }
}
