/* ============================================================
   source layer: product-timeline-lanes-20260523.css
   ============================================================ */
/* Product Timeline lanes (2026-05-23)
   Scoped add-on for homepage Release Timeline and /timeline. */

.hm-timeline {
  --hm-lane-line: color-mix(in srgb, var(--text) 18%, transparent);
  --hm-lane-line-soft: color-mix(in srgb, var(--text) 8%, transparent);
  --hm-lane-muted: color-mix(in srgb, var(--text) 48%, transparent);
  --hm-lane-active: var(--text);
  --hm-lane-iphone: #6f8faa;
  --hm-lane-ipad: #b59a61;
  --hm-lane-mac: #7e858c;
  --hm-lane-watch: #c46d64;
  --hm-lane-os: #776aa4;
  color: var(--text);
}

.hm-timeline [data-cat="iphone"] { --hm-lane-color: var(--hm-lane-iphone); }
.hm-timeline [data-cat="ipad"] { --hm-lane-color: var(--hm-lane-ipad); }
.hm-timeline [data-cat="mac"] { --hm-lane-color: var(--hm-lane-mac); }
.hm-timeline [data-cat="watch"] { --hm-lane-color: var(--hm-lane-watch); }
.hm-timeline [data-cat="os"] { --hm-lane-color: var(--hm-lane-os); }

.hm-timeline__frame {
  border-top: 1px solid var(--hm-lane-line);
  border-bottom: 1px solid var(--hm-lane-line);
  padding: clamp(18px, 2.4vw, 28px) 0;
}

.hm-timeline__year-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hm-timeline__year-tabs::-webkit-scrollbar {
  display: none;
}

.hm-timeline__year-tab {
  flex: 0 0 auto;
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--hm-lane-muted);
  font-family: var(--f-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
}

.hm-timeline__year-tab.is-active,
.hm-timeline__year-tab:hover,
.hm-timeline__year-tab:focus-visible {
  color: var(--hm-lane-active);
  border-bottom-color: currentColor;
  outline: none;
}

.hm-timeline__lanes {
  display: grid;
  grid-template-columns: minmax(64px, 92px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.hm-timeline__lane-labels {
  display: grid;
  grid-template-rows: repeat(var(--hm-timeline-lanes), 34px);
  gap: 0;
  padding-top: 40px;
}

.hm-timeline__lane-label {
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--hm-lane-muted);
  font-family: var(--f-en);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.hm-timeline__scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.hm-timeline__years {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(78px, 11vw, 118px);
  min-width: max-content;
}

.hm-timeline__year-col {
  position: relative;
  display: grid;
  grid-template-rows: 34px repeat(var(--hm-timeline-lanes), 34px);
  scroll-snap-align: start;
}

.hm-timeline__year-label {
  justify-self: center;
  align-self: start;
  padding: 0 0 8px;
  border: 0;
  background: transparent;
  color: var(--hm-lane-muted);
  font-family: var(--f-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
}

body.home-page .hm-timeline .hm-timeline__year-label {
  position: static !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 0 8px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  transform: none !important;
}

.hm-timeline__year-label.is-active,
.hm-timeline__year-col.is-active .hm-timeline__year-label {
  color: var(--hm-lane-active);
}

.hm-timeline__dot-cell {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
}

.hm-timeline__dot-cell::before {
  content: "";
  position: absolute;
  left: -50%;
  right: -50%;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: var(--hm-lane-line-soft);
}

.hm-timeline__dot {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 30%, var(--bg));
  box-shadow: 0 0 0 4px var(--bg);
  transition: width 180ms var(--ease), height 180ms var(--ease), background-color 180ms var(--ease), transform 180ms var(--ease);
}

.hm-timeline__dot span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hm-timeline__dot-cell.has-items {
  cursor: pointer;
}

.hm-timeline__dot-cell.has-items .hm-timeline__dot {
  width: 11px;
  height: 11px;
  background: var(--hm-lane-color, var(--text));
}

.hm-timeline__dot-cell.has-items:hover .hm-timeline__dot,
.hm-timeline__dot-cell.has-items:focus-visible .hm-timeline__dot,
.hm-timeline__dot-cell.has-items.is-active .hm-timeline__dot {
  width: 17px;
  height: 17px;
  transform: translateY(-1px);
  outline: none;
}

.hm-timeline__year-col.is-active .hm-timeline__dot-cell::before {
  background: color-mix(in srgb, var(--text) 18%, transparent);
}

.hm-timeline__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--hm-lane-muted);
  font-family: var(--f-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.hm-timeline__hint span:nth-child(2) {
  flex: 1;
  height: 1px;
  background: var(--hm-lane-line-soft);
}

.hm-timeline__detail {
  padding-top: clamp(18px, 2.6vw, 34px);
}

.hm-timeline__detail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hm-lane-line-soft);
}

.hm-timeline__detail-head span {
  font-family: var(--f-en);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.9;
}

.hm-timeline__detail-head p {
  margin: 0;
  color: var(--hm-lane-muted);
  font-family: var(--f-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hm-timeline__detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.hm-timeline__detail-group {
  min-width: 0;
  border-top: 2px solid var(--hm-lane-color, var(--text));
  padding-top: 12px;
}

.hm-timeline__detail-group h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--text);
  font-family: var(--f-en);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.hm-timeline__detail-group h3 span {
  color: var(--hm-lane-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.hm-timeline__detail-group ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-timeline__detail-group li {
  border-bottom: 1px solid var(--hm-lane-line-soft);
}

.hm-timeline__detail-group a {
  display: grid;
  gap: 4px;
  padding: 11px 0 12px;
  color: inherit;
  text-decoration: none;
}

.hm-timeline__detail-title {
  min-width: 0;
  font-family: var(--f-heading-jp);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.45;
}

.hm-timeline__detail-meta,
.hm-timeline__detail-summary {
  color: var(--hm-lane-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.hm-timeline__detail-summary {
  font-family: var(--f-jp);
  font-weight: 500;
  letter-spacing: 0;
}

.hm-timeline__detail-group a:hover .hm-timeline__detail-title,
.hm-timeline__detail-group a:focus-visible .hm-timeline__detail-title {
  color: var(--hm-lane-color, var(--accent));
}

.hm-timeline__detail-empty,
.hm-timeline__empty {
  color: var(--hm-lane-muted);
  font-size: 14px;
  font-weight: 700;
}

.timeline-list--lanes {
  max-width: var(--max);
  margin: 0 auto clamp(52px, 7vw, 96px);
  padding: 0 var(--pad-x);
}

.timeline-list--lanes::before {
  display: none !important;
}

.timeline-list--lanes .hm-timeline__detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

body.home-page .hm-timeline--home .hm-timeline__detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

body.home-page .hm-timeline--home .hm-timeline__detail-summary {
  display: none;
}

:root[data-theme="dark"] .hm-timeline,
body.dark .hm-timeline {
  --hm-lane-line: color-mix(in srgb, var(--text) 24%, transparent);
  --hm-lane-line-soft: color-mix(in srgb, var(--text) 12%, transparent);
}

@media (min-width: 900px) {
  .hm-timeline__scroll {
    scrollbar-width: none;
  }

  .hm-timeline__scroll::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 760px) {
  .hm-timeline__frame {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .hm-timeline__lanes {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
  }

  .hm-timeline__lane-labels {
    grid-template-rows: repeat(var(--hm-timeline-lanes), 30px);
    padding-top: 36px;
  }

  .hm-timeline__lane-label {
    font-size: 18px;
  }

  .hm-timeline__years {
    grid-auto-columns: 66px;
  }

  .hm-timeline__year-col {
    grid-template-rows: 30px repeat(var(--hm-timeline-lanes), 30px);
  }

  .hm-timeline__dot-cell {
    height: 30px;
  }

  .hm-timeline__detail-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .hm-timeline__detail-grid,
  .timeline-list--lanes .hm-timeline__detail-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .timeline-list--lanes {
    padding-left: 16px;
    padding-right: 16px;
  }
}

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

