.side-rail__heading {
  margin: 0 0 14px;
  padding: 0 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.side-rail__heading h2 {
  margin: 0;
  padding: 0;
  border: 0;
}

.overview-link {
  color: var(--muted);
  font-size: 11px;
}

.overview-link:hover,
.overview-link:focus-visible,
.overview-link.is-current {
  color: var(--coral);
}

.side-group > .side-category {
  position: relative;
  margin: 10px 0 3px;
  padding: 5px 10px 5px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.side-group > .side-category::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 3px;
  background: transparent;
}

.side-group > .side-category svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #55718c;
  stroke-width: 1.7;
}

.side-group.is-open > .side-category,
.side-group > .side-category:hover,
.side-group > .side-category:focus-visible {
  color: var(--blue);
}

.side-group.is-open > .side-category::before {
  background: var(--coral);
}

.side-group.is-open > .side-category svg {
  color: var(--blue);
}

.side-group > a[data-route].is-current {
  color: var(--coral);
  font-weight: 600;
}

.route-view {
  min-height: 560px;
}

.route-view[hidden] {
  display: none !important;
}

.route-view.is-entering {
  animation: route-in 220ms var(--ease) both;
}

@keyframes route-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.route-head {
  min-height: 96px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.route-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.route-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.route-head p {
  max-width: 580px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.route-head__mark {
  width: 72px;
  height: 72px;
  padding: 18px;
  flex: 0 0 72px;
  color: var(--white);
  background: var(--blue);
}

.route-head__mark--coral { background: var(--coral); }
.route-head__mark--slate { background: var(--slate); }
.route-head__mark svg { width: 100%; height: 100%; stroke-width: 1.5; }

.route-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.route-card {
  min-height: 190px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  color: var(--white);
  background: var(--blue);
}

.route-card:nth-child(2) { background: var(--coral); }
.route-card:nth-child(3) { background: var(--slate); }
.route-card svg { width: 32px; height: 32px; color: rgba(255,255,255,.78); stroke-width: 1.5; }
.route-card h3 { margin: auto 0 0; font-size: 18px; }
.route-card p { min-height: 38px; margin: 8px 0 0; color: rgba(255,255,255,.74); font-size: 12px; line-height: 1.55; }
.route-card span { align-self: end; font-size: 22px; }

.route-columns {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(280px,.85fr);
  gap: 14px;
}

.route-panel {
  padding: 20px 22px;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
}

.route-panel h3 { margin: 0; font-size: 17px; }
.route-panel > p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.route-list {
  margin-top: 13px;
}

.route-list__item {
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) auto 18px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 11px;
}

.route-list__item svg { width: 17px; height: 17px; color: var(--coral); }
.route-list__item strong { color: var(--ink); font-size: 13px; font-weight: 600; }
.route-list__item em { color: var(--muted); font-style: normal; }
.route-list__item span { color: var(--blue); font-size: 18px; }

.status-stack {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.status-item {
  min-height: 70px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line-soft);
}

.status-item__icon {
  width: 38px;
  height: 38px;
  padding: 9px;
  color: var(--white);
  background: var(--blue);
}

.status-item:nth-child(2) .status-item__icon { background: var(--coral); }
.status-item:nth-child(3) .status-item__icon { background: var(--slate); }
.status-item__icon svg { width: 100%; height: 100%; }
.status-item strong { display: block; font-size: 13px; }
.status-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }

.tool-entry-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.tool-entry {
  min-height: 104px;
  padding: 18px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 20px;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.tool-entry:hover,
.tool-entry:focus-visible { border-color: var(--blue); }
.tool-entry__icon { width: 42px; height: 42px; padding: 10px; color: var(--white); background: var(--blue); }
.tool-entry:nth-child(2) .tool-entry__icon { background: var(--coral); }
.tool-entry:nth-child(3) .tool-entry__icon { background: var(--slate); }
.tool-entry:nth-child(4) .tool-entry__icon { background: #337b73; }
.tool-entry__icon svg { width: 100%; height: 100%; }
.tool-entry strong { display: block; font-size: 15px; }
.tool-entry small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.tool-entry > span { color: var(--blue); font-size: 19px; }

.learning-path {
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: learning;
}

.learning-path li {
  position: relative;
  min-height: 68px;
  padding: 3px 0 14px 48px;
  counter-increment: learning;
}

.learning-path li::before {
  content: counter(learning, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.learning-path li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 0;
  left: 15px;
  border-left: 1px dashed #9fb0be;
}

.learning-path strong { display: block; font-size: 14px; }
.learning-path span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }

@media (max-width: 900px) {
  .side-rail__heading,
  .side-rail__heading h2,
  .side-rail__kicker {
    display: none !important;
  }
}

@media (max-width: 700px) {
  .route-head h2 { font-size: 26px; }
  .route-head__mark { width: 56px; height: 56px; padding: 13px; flex-basis: 56px; }
  .route-card-grid, .route-columns, .tool-entry-grid { grid-template-columns: 1fr; }
  .route-card { min-height: 165px; }
  .route-list__item { grid-template-columns: 24px minmax(0,1fr) 18px; }
  .route-list__item em { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .route-view.is-entering { animation: none; }
}

/* --- catalog doc view (sidebar click → inline content) --- */
.side-rail__kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.side-rail__heading {
  display: block;
}

.newcomer-phase:not(:has(> b)) {
  grid-template-columns: 22px minmax(0, 1fr) 18px;
}

.newcomer-phases > .side-group > .newcomer-phase {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  gap: 9px;
  align-items: center;
  justify-items: start;
  width: 100%;
  padding: 12px 10px 12px 12px;
  text-align: left;
  border-left: 3px solid transparent;
}

.newcomer-phases > .side-group > .newcomer-phase > i,
.newcomer-phases > .side-group > .newcomer-phase > [data-lucide] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.newcomer-phases > .side-group > .newcomer-phase > i svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
  color: #58728a;
}

.newcomer-phases > .side-group > .newcomer-phase > span {
  min-width: 0;
  text-align: left;
  align-items: flex-start;
}

.newcomer-phases > .side-group > .newcomer-phase > em {
  justify-self: end;
}

.newcomer-phases > .side-group > .newcomer-phase.is-current {
  border-left-color: var(--coral);
}

.newcomer-phases > .side-group > .newcomer-phase.is-current > i svg {
  color: var(--blue);
}

.newcomer-main {
  min-width: 0;
}

.newcomer-doc {
  padding: 4px 0 32px;
}

.newcomer-doc__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.newcomer-doc__head h2 {
  margin: 0;
  color: var(--navy-950);
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(30px, 2.8vw, 42px);
  font-weight: 600;
  line-height: 1.2;
}

.newcomer-doc__head p {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.newcomer-doc__meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.newcomer-doc__body {
  padding-top: 24px;
}

.newcomer-doc__body.post-content > :first-child {
  margin-top: 0;
}

.newcomer-doc__empty {
  margin-top: 24px;
  padding: 28px;
  text-align: center;
  background: #f7f9fb;
  border: 1px dashed #cbd4dc;
}

.newcomer-doc__empty p {
  margin: 0 0 16px;
  color: var(--muted);
}

.module-doc-main {
  min-width: 0;
}

.module-doc-shell .side-rail h2 {
  margin: 0 0 14px;
  padding: 0 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 700;
}

.module-doc-shell .side-rail__intro {
  margin: 0 0 22px;
  padding: 0 12px;
  color: #597087;
  font-size: 12px;
  line-height: 1.65;
}

.module-doc-shell .side-menu--single {
  gap: 0;
}

.module-doc-shell .side-group {
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.module-doc-shell .growth-nav-item,
.module-doc-shell .support-nav-item {
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: #3b5870;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  gap: 9px;
  align-items: center;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.module-doc-shell .growth-nav-item svg,
.module-doc-shell .support-nav-item svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
  color: #58728a;
}

.module-doc-shell .growth-nav-item > span,
.module-doc-shell .support-nav-item__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.module-doc-shell .growth-nav-item strong,
.module-doc-shell .support-nav-item__copy strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.module-doc-shell .growth-nav-item small,
.module-doc-shell .support-nav-item__copy small {
  color: #8797a5;
  font-size: 10px;
  line-height: 1.35;
  white-space: normal;
}

.module-doc-shell .growth-nav-item > b,
.module-doc-shell .support-nav-item__arrow {
  opacity: 0;
  color: var(--blue);
}

.module-doc-shell .growth-nav-item:hover,
.module-doc-shell .support-nav-item:hover {
  background: #f3f6f8;
  color: var(--blue);
}

.module-doc-shell .growth-nav-item:hover svg,
.module-doc-shell .support-nav-item:hover svg {
  color: var(--blue);
}

.module-doc-shell .growth-nav-item.is-current,
.module-doc-shell .support-nav-item.is-current {
  border-left-color: var(--coral);
  background: #f3f6f8;
  color: var(--blue);
}

.module-doc-shell .growth-nav-item.is-current svg,
.module-doc-shell .support-nav-item.is-current svg {
  color: var(--coral);
}

.module-doc-shell .growth-nav-item.is-current > b,
.module-doc-shell .support-nav-item.is-current .support-nav-item__arrow {
  opacity: 1;
}

.module-doc-shell .module-doc-folder {
  border-bottom: 1px solid var(--line);
}

.module-doc-shell .growth-nav-item--folder,
.module-doc-shell .support-nav-item--folder {
  appearance: none;
  border-left: 3px solid transparent;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
}

.module-doc-shell .growth-nav-item--folder > b,
.module-doc-shell .support-nav-item--folder .support-nav-item__arrow {
  display: none;
}

.module-doc-shell .growth-nav-item--folder .newcomer-phase__chevron,
.module-doc-shell .support-nav-item--folder .newcomer-phase__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-90deg);
  transition: transform 0.2s ease, color 180ms var(--ease);
  opacity: 1;
  color: #9aabba;
}

.module-doc-shell .growth-nav-item--folder .newcomer-phase__chevron svg,
.module-doc-shell .support-nav-item--folder .newcomer-phase__chevron svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}

.module-doc-shell .module-doc-folder.is-open .growth-nav-item--folder .newcomer-phase__chevron,
.module-doc-shell .module-doc-folder.is-open .support-nav-item--folder .newcomer-phase__chevron {
  transform: rotate(0deg);
  color: var(--coral);
}

.module-doc-shell .growth-nav-item--folder.is-parent-current,
.module-doc-shell .support-nav-item--folder.is-parent-current {
  color: var(--blue);
}

.module-doc-shell .growth-nav-item--folder.is-parent-current svg,
.module-doc-shell .support-nav-item--folder.is-parent-current svg {
  color: var(--blue);
}

.module-doc-shell .module-doc-folder .newcomer-subnav {
  padding-left: 34px;
}

.module-doc__block + .module-doc__block {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.module-doc__block-title {
  margin: 0 0 16px;
  color: var(--navy-950);
  font-family: "Songti SC", "STSong", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .newcomer-doc__head {
    flex-direction: column;
  }

  .newcomer-doc__meta {
    grid-auto-flow: column;
    gap: 14px;
  }
}

.newcomer-phases {
  display: grid;
}

/* side-rail wraps each link in .side-group (dashboard base also draws a bottom line).
   Keep a single divider on .newcomer-phase only — avoid double hairlines. */
.newcomer-phases > .side-group {
  padding: 0;
  border-bottom: 0;
}

.newcomer-phase {
  min-height: 78px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  color: #456177;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  gap: 9px;
  align-items: center;
  justify-items: start;
  text-align: left;
  text-decoration: none;
  background: transparent;
  transition: color 180ms var(--ease);
}

.newcomer-phase > b {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eaf0f5;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 10px;
}

.newcomer-phase > i,
.newcomer-phase > [data-lucide] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.newcomer-phase > i svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
  color: #58728a;
}

.newcomer-phase > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  text-align: left;
  align-items: flex-start;
}

.newcomer-phase strong {
  font-size: 14px;
}

.newcomer-phase small {
  color: #8b9aa7;
  font-size: 10px;
}

.newcomer-phase em {
  opacity: 0;
  color: var(--coral);
  font-style: normal;
}

.newcomer-phase:hover,
.newcomer-phase:focus-visible {
  color: var(--blue);
  background: transparent;
}

.newcomer-phase.is-current {
  color: var(--blue);
  background: transparent;
  border-left-color: var(--coral);
}

.newcomer-phase.is-current > b {
  background: var(--blue);
  color: #fff;
}

.newcomer-phase.is-current > i svg {
  color: var(--blue);
}

.newcomer-phase.is-current em {
  opacity: 1;
}

/* expandable folder + secondary sub directory */
.newcomer-folder {
  border-bottom: 1px solid var(--line);
}

.newcomer-folder .newcomer-phase {
  border-bottom: 0;
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.newcomer-folder.is-folder-current {
  background: transparent;
}

.newcomer-folder.is-open {
  padding-bottom: 0;
}

.newcomer-phase--folder {
  min-height: 68px;
  appearance: none;
  background: transparent;
  border: 0;
}

.newcomer-phase--folder span strong {
  font-size: 13px;
  line-height: 1.35;
}

.newcomer-phase--folder span small {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: .02em;
}

.newcomer-phase--folder .newcomer-phase__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-90deg);
  transition: transform 0.2s ease, color 180ms var(--ease);
  opacity: 1;
  color: #9aabba;
}

.newcomer-phase--folder .newcomer-phase__chevron svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}

.newcomer-folder.is-open .newcomer-phase--folder .newcomer-phase__chevron {
  transform: rotate(0deg);
  color: var(--coral);
}

.newcomer-phase.is-parent-current {
  color: var(--blue);
}

.newcomer-phase.is-parent-current:not(.is-current) {
  background: transparent;
}

.newcomer-subnav {
  display: none;
  margin: 0;
  padding: 2px 0 10px 34px;
}

.newcomer-folder.is-open .newcomer-subnav {
  display: block;
}

.newcomer-subnav__panel {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 2px 0 2px 20px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.newcomer-subnav__panel::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 5px;
  width: 1px;
  background: #d5dde5;
}

.newcomer-subnav__link {
  position: relative;
  min-height: 34px;
  padding: 7px 0 7px 2px;
  display: block;
  color: #6a8094;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: color 180ms var(--ease);
}

.newcomer-subnav__link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8c5d2;
  box-shadow: 0 0 0 2px var(--paper);
  transform: translate(-50%, -50%);
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}

.newcomer-subnav__text {
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}

.newcomer-subnav__icon {
  display: none;
}

.newcomer-subnav__link:hover,
.newcomer-subnav__link:focus-visible {
  color: var(--blue);
  background: transparent;
}

.newcomer-subnav__link:hover::before,
.newcomer-subnav__link:focus-visible::before {
  background: var(--blue);
}

.newcomer-subnav__link.is-current {
  color: var(--blue);
  background: transparent;
}

.newcomer-subnav__link.is-current::before {
  width: 7px;
  height: 7px;
  background: var(--coral);
}

@media (prefers-reduced-motion: reduce) {
  .newcomer-subnav__link,
  .newcomer-subnav__link::before {
    transition: none;
  }
}

.tool-entry-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-entry.is-current {
  border-color: rgba(255, 109, 97, .45);
  background: linear-gradient(180deg, #fff7f4, #fff);
  box-shadow: 0 16px 36px rgba(12, 48, 78, .08);
}

.bay-tool-focus {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 22px;
  margin: 16px 0;
  padding: 24px;
  background: linear-gradient(135deg, #fff 0%, #fff7f3 100%);
}

.bay-tool-focus__main h3 {
  margin: 8px 0 10px;
  font-size: clamp(24px, 2.1vw, 34px);
  color: var(--blue);
}

.bay-tool-focus__main p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.85;
  text-wrap: pretty;
}

.bay-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button-ghost {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--line);
}

.bay-tool-focus__side {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.bay-tool-focus__side strong {
  display: block;
  color: var(--blue);
  margin-bottom: 12px;
}

.bay-tool-focus__side ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bay-tool-focus__side li {
  position: relative;
  padding-left: 18px;
  color: #4f6276;
  line-height: 1.65;
}

.bay-tool-focus__side li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 6px;
  height: 6px;
  border-radius: 4px;
  background: var(--coral);
}

@media (max-width: 1100px) {
  .tool-entry-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bay-tool-focus { grid-template-columns: 1fr; }
  .bay-tool-focus__side { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 18px; }
}

@media (max-width: 900px) {
  .newcomer-folder {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
  }
  .tool-entry-grid--compact { grid-template-columns: 1fr; }
}
