/* Stability refinements kept separate from the compact primary stylesheet. */
.reveal {
  opacity: 1;
  transition: transform .55s;
}

.image-stage {
  display: block;
  position: relative;
}

.screenshot-button.large-preview img {
  max-height: 650px;
}

.guide-note ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.guide-note li + li {
  margin-top: 6px;
}

/* Give Quick Start the full content width on portrait tablets. */
@media (max-width: 900px) {
  .guide-progress {
    margin-left: 0;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .chapter-nav {
    position: relative;
    top: auto;
    overflow-x: auto;
    margin-inline: -16px;
    padding: 0 16px;
  }

  .chapter-nav ol {
    display: flex;
    width: max-content;
  }

  .chapter-nav button {
    width: 150px;
    border-left: 0;
    border-bottom: 2px solid #dbe5e9;
  }

  .chapter-nav button.active {
    border-bottom-color: var(--teal);
  }
}

/* Revised hero relationship diagram */
.triangle-system {
  isolation: isolate;
}

.triangle-system::before,
.triangle-system::after {
  display: none;
}

.triangle-lines {
  position: absolute;
  inset: 26px 10px 20px;
  width: calc(100% - 20px);
  height: calc(100% - 46px);
  overflow: visible;
}

.triangle-lines path {
  fill: rgba(32, 170, 164, .035);
  stroke: #8fc7c9;
  stroke-dasharray: 7 7;
  stroke-width: 2;
}

.triangle-lines circle {
  fill: var(--coral);
  stroke: #fde7e8;
  stroke-width: 9;
}

.triangle-core {
  position: absolute;
  left: 50%;
  top: 51%;
  z-index: 2;
  width: 146px;
  height: 146px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  box-shadow: 0 20px 44px rgba(18, 50, 76, .2);
  text-align: center;
}

.triangle-core strong {
  font-size: 17px;
}

.triangle-point {
  position: absolute;
  z-index: 3;
  width: 190px;
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid #c7dde3;
  border-radius: 17px;
  background: #fff;
  color: var(--deep);
  box-shadow: var(--shadow);
  text-align: center;
  line-height: 1.25;
}

.identity-point {
  left: 50%;
  top: 1%;
  transform: translateX(-50%);
}

.activity-point {
  left: 0;
  bottom: 2%;
}

.collaboration-point {
  right: 0;
  bottom: 2%;
}

/* Product names replace the removed letter icons and act as links. */
.product-top .product-order {
  margin-left: auto;
}

.product-card h3 {
  margin-top: 24px;
}

.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card h3 a span {
  display: inline-block;
  color: var(--teal-dark);
  font-size: .55em;
  transform: translateY(-.3em);
}

.product-card h3 a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.product-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 8px;
  padding: 4px 9px;
  border: 1px solid rgba(8, 127, 123, .3);
  border-radius: 999px;
  background: rgba(32, 170, 164, .07);
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.2;
  text-transform: uppercase;
  vertical-align: .28em;
}

@media (max-width: 760px) {
  .product-status {
    margin: 8px 0 0;
    vertical-align: middle;
  }
}

/* English two-layer framework based on the supplied reference diagram. */
.framework-panel {
  padding: 22px;
}

.framework-desktop {
  display: block;
  width: 100%;
  height: auto;
}

.framework-desktop .layer-box {
  fill: rgba(255, 255, 255, .13);
  stroke: rgba(214, 227, 233, .5);
  stroke-width: 2;
}

.framework-desktop .layer-title {
  fill: #eef7f8;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .04em;
}

.framework-desktop .layer-title-stacked {
  font-size: 16px;
  letter-spacing: .06em;
}

.framework-desktop .diagram-node rect {
  fill: #0a2336;
  stroke: rgba(225, 237, 241, .75);
  stroke-width: 2;
}

.framework-desktop .diagram-node text {
  fill: #cad8de;
  font-size: 15px;
  font-weight: 550;
}

.framework-desktop .diagram-node .node-title {
  fill: #fff;
  font-size: 19px;
  font-weight: 800;
}

.framework-desktop .diagram-arrows {
  fill: none;
  stroke: #c3d0d5;
  stroke-linecap: round;
  stroke-width: 2;
}

.framework-desktop marker path {
  fill: #c3d0d5;
}

.framework-mobile {
  display: none;
}

.framework-note {
  margin: 12px 10px 2px;
  color: #9ab2bd;
  font-size: 12px;
}

/* Input markers use the same translucent visual language in instructions and screenshots. */
.hotspot,
.step-number {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(8, 127, 123, .58);
  background: rgba(255, 255, 255, .7);
  color: var(--teal-dark);
  box-shadow: 0 2px 8px rgba(10, 35, 54, .14), 0 0 0 5px rgba(32, 170, 164, .07);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.hotspot {
  animation: marker-breathe 2.8s ease-in-out infinite;
}

.step-number {
  flex: 0 0 auto;
  animation: step-marker-breathe 2.8s ease-in-out infinite;
}

.steps li.has-marker {
  grid-template-columns: 34px 1fr;
}

.steps li.is-plain {
  display: block;
  color: var(--muted);
  padding-left: 0;
}

.steps a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.steps a:hover {
  color: var(--deep);
}

.guide-summary a {
  color: var(--teal-dark);
  font-weight: 750;
  text-underline-offset: 3px;
}

.guide-summary a:hover {
  color: var(--deep);
}

.step-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.screens.pulse .hotspot {
  animation: marker-locate 1.1s ease-in-out 2;
}

.feature-list {
  margin: 0;
}

.feature-list > div {
  padding: 17px 0;
  border-bottom: 1px solid #e7eef1;
}

.feature-list > div:first-child {
  padding-top: 0;
}

.feature-list dt {
  color: var(--deep);
  font-size: 15px;
  font-weight: 850;
}

.feature-list dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

@keyframes marker-breathe {
  50% {
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 3px 10px rgba(10, 35, 54, .16), 0 0 0 8px rgba(32, 170, 164, .09);
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes marker-locate {
  50% {
    border-color: var(--teal);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 4px 14px rgba(10, 35, 54, .2), 0 0 0 14px rgba(32, 170, 164, .13);
    transform: translate(-50%, -50%) scale(1.16);
  }
}

@keyframes step-marker-breathe {
  50% {
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 3px 10px rgba(10, 35, 54, .16), 0 0 0 8px rgba(32, 170, 164, .09);
    transform: scale(1.04);
  }
}

@media (max-width: 760px) {
  .triangle-system {
    height: 410px;
    margin: 0 -24px;
    transform: none;
  }

  .triangle-lines {
    inset: 18px 25px 26px;
    width: calc(100% - 50px);
    height: calc(100% - 44px);
  }

  .triangle-core {
    width: 124px;
    height: 124px;
  }

  .triangle-point {
    width: 150px;
    min-height: 76px;
    padding: 13px;
    font-size: 13px;
  }

  .identity-point {
    top: 0;
  }

  .activity-point {
    left: 8px;
    bottom: 0;
  }

  .collaboration-point {
    right: 8px;
    bottom: 0;
  }

  .framework-panel {
    padding: 16px;
  }

  .framework-desktop {
    display: none;
  }

  .framework-mobile {
    display: grid;
    gap: 18px;
  }

  .mobile-layer {
    padding: 18px;
    border: 1px solid #3c5d70;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
  }

  .mobile-layer > p {
    margin: 0 0 3px;
    color: #78c7c5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  .mobile-layer > h3 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 18px;
    line-height: 1.3;
  }

  .mobile-products {
    display: grid;
    gap: 10px;
  }

  .mobile-products > div {
    display: grid;
    gap: 3px;
    padding: 14px;
    border: 1px solid #436375;
    border-radius: 10px;
    background: #0a2336;
  }

  .mobile-products span,
  .application-mobile small {
    color: #a9bec8;
    font-size: 12px;
  }

  .application-mobile ol {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .application-mobile li {
    position: relative;
    display: grid;
    gap: 3px;
    margin-bottom: 28px;
    padding: 15px 14px 15px 62px;
    border: 1px solid #436375;
    border-radius: 10px;
    background: #0a2336;
  }

  .application-mobile li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 31px;
    bottom: -29px;
    width: 1px;
    height: 28px;
    background: #7daab0;
  }

  .application-mobile li > span {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #164b5b;
    color: #8dd9d5;
    font-size: 9px;
    font-weight: 850;
  }

  .application-mobile li:last-child {
    margin-bottom: 0;
  }
}

@media print {
  .framework-mobile {
    display: none !important;
  }

  .framework-desktop {
    display: block !important;
  }
}
