/* Hands On Preview (www/hands-on.html) */
* { box-sizing: border-box; }
html, body.hd { height: 100%; margin: 0; }
body.hd { display: flex; flex-direction: column; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #0f172a; background: #f1f5f9; overflow: hidden; }

.hd-bar { display: flex; align-items: center; gap: 1rem; padding: .45rem 1rem; background: #0f172a; color: #fff; flex: none; }
.hd-brand { display: inline-flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-weight: 700; }
.hd-brand img { width: 28px; height: 28px; }
.hd-title { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: .02em; color: #93c5fd; }
.hd-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.hd-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border: 1px solid rgba(148,163,184,.45); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.hd-bar .hd-btn { color: #e2e8f0; }
.hd-btn:hover:not(:disabled) { border-color: #60a5fa; color: #60a5fa; }
.hd-btn:disabled { opacity: .4; cursor: default; }
.hd-btn--primary { background: #4f46e5; border-color: #4f46e5; color: #fff !important; }
.hd-btn--primary:hover:not(:disabled) { background: #4338ca; border-color: #4338ca; color: #fff; }

.lang-switch { display: inline-flex; gap: .15rem; padding: .15rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.lang-switch__btn { display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .55rem; border: 0; border-radius: 999px; background: none; color: rgba(255,255,255,.8); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.lang-switch__btn:hover { color: #fff; }
.lang-switch__btn.active { background: #0d6efd; color: #fff; }
.lang-switch__flag { font-size: 1rem; line-height: 1; }

.hd-note { flex: none; padding: .3rem 1rem; background: #fef3c7; color: #92400e; font-size: .78rem; border-bottom: 1px solid #fde68a; }
.hd-main { flex: 1 1 auto; min-height: 120px; display: flex; }
.hd-main iframe { flex: 1; width: 100%; border: 0; background: #fff; }

/* guide dock */
.hd-dock { flex: none; background: #fff; border-top: 3px solid #4f46e5; box-shadow: 0 -6px 18px rgba(15,23,42,.12); }
.hd-dock__head { display: flex; align-items: center; gap: 1rem; padding: .35rem 1rem; background: #eef2ff; color: #312e81; font-weight: 700; }
.hd-dock__title { display: inline-flex; align-items: center; gap: .5rem; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; padding: .2rem 0; }
.hd-dots { display: inline-flex; gap: .3rem; margin-left: .5rem; }
.hd-dot { width: 24px; height: 24px; padding: 0; border: 1px solid #a5b4fc; border-radius: 50%; background: #fff; color: #4338ca; font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; }
.hd-dot.is-current { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.hd-dock__chev { margin-left: auto; border: 0; background: none; color: inherit; font-size: 1rem; cursor: pointer; padding: .2rem .4rem; }
.hd-dock__chev i { transition: transform .2s; }
.hd-dock:not(.is-open) .hd-dock__chev i { transform: rotate(180deg); }
.hd-dock__body { display: none; grid-template-columns: minmax(380px, 56%) 1fr; gap: 1.2rem; padding: 1rem 1.2rem; max-height: 40vh; overflow: auto; }
.hd-dock.is-open .hd-dock__body { display: grid; }

/* diagram */
.hd-diagram__title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #64748b; margin-bottom: .5rem; }
.hd-flow { display: flex; align-items: stretch; gap: .3rem; }
.hd-flow--sub { margin-top: .5rem; }
.hd-box { display: flex; flex-direction: column; justify-content: center; gap: .15rem; flex: 1 1 0; min-width: 0; padding: .5rem .55rem; border: 2px solid; border-radius: 10px; font: inherit; text-align: left; cursor: pointer; color: #0f172a; }
.hd-flow--sub .hd-box { flex: 0 1 auto; min-width: 150px; }
.hd-box b { font-size: .85rem; }
.hd-box small { font-size: .68rem; color: #475569; }
.hd-box.is-current { box-shadow: 0 0 0 3px rgba(79,70,229,.35); transform: translateY(-1px); }
.hd-box--org { background: #dbeafe; border-color: #3b82f6; }
.hd-box--cred { background: #fef3c7; border-color: #f59e0b; }
.hd-box--plan { background: #ede9fe; border-color: #8b5cf6; }
.hd-box--res { background: #dcfce7; border-color: #22c55e; }
.hd-box--exe { background: #f1f5f9; border: 2px dashed #94a3b8; }
.hd-box--sub { background: #ccfbf1; border: 2px dashed #14b8a6; }
.hd-arrow { align-self: center; width: 18px; height: 2px; background: #64748b; position: relative; flex: none; }
.hd-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 7px solid #64748b; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.hd-arrow--dash { background: repeating-linear-gradient(90deg, #64748b 0 4px, transparent 4px 7px); }
.hd-chips { display: flex; gap: .2rem; margin-top: .25rem; flex-wrap: wrap; }
.hd-chip { font-style: normal; font-size: .58rem; font-weight: 700; padding: .05rem .3rem; border-radius: 4px; color: #fff; }
.hd-chip--aws { background: #ff9900; }
.hd-chip--azr { background: #0078d4; }
.hd-chip--gcp { background: #4285f4; }
.hd-rule { margin: .6rem 0 0; font-size: .75rem; color: #475569; }

/* steps */
.hd-step h2 { margin: 0 0 .25rem; font-size: 1.05rem; color: #312e81; }
.hd-step p { margin: 0 0 .4rem; color: #334155; }
.hd-step ol { margin: .2rem 0 .5rem 1.1rem; padding: 0; }
.hd-step li { margin-bottom: .3rem; }
.hd-try { padding: .35rem .6rem; background: #eef2ff; border-left: 3px solid #4f46e5; border-radius: 4px; font-size: .85rem; }
.hd-nav { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.hd-nav .hd-btn { color: #334155; border-color: #cbd5e1; }
.hd-nav .hd-btn--primary { color: #fff; border-color: #4f46e5; }
.hd-count { font-size: .78rem; color: #64748b; margin-right: auto; }
.hd-nav .hd-btn--primary { margin-left: auto; }

@media (max-width: 860px) {
  .hd-dock__body { grid-template-columns: 1fr; max-height: 48vh; }
  .hd-actions .hd-btn span { display: none; }
  .hd-title { display: none; }
  .hd-flow { flex-direction: column; align-items: stretch; }
  .hd-box { flex: none; }
  .hd-arrow { width: 2px; height: 14px; align-self: center; }
  .hd-arrow::after { right: -4px; top: auto; bottom: -1px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid #64748b; border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .hd-box.is-current { transform: none; } .hd-dock__chev { transition: none; } }
