/* Hallmark: HamaEditor site typography, bordered installation guide, installer filename. */
/* Keep SmartScreen instructions visible alongside the install steps. */
html:has(.windows-download),
body:has(.windows-download) {
  overflow-x: clip;
}

.windows-download.download-head {
  padding: clamp(44px, 7vw, 96px) 20px;
}

.windows-download .h1 {
  min-width: 0;
  overflow-wrap: break-word;
}

.windows-download .lead {
  margin: 12px 0 0;
}

.windows-download :focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

/* 윈도우 창: 제목은 왼쪽, 최소화·최대화·닫기는 오른쪽 */
.win--pc .win__bar { justify-content: flex-end; }
.inst__art .win--pc .win__title { inset: 0 auto 0 14px; place-items: center start; }
.win__ctl { display: flex; align-items: center; gap: 18px; margin-right: 2px; }
.win__ctl i { position: relative; width: 9px; height: 9px; }
.win__ctl i::before, .win__ctl i::after { content: ""; position: absolute; }
.win__ctl i:nth-last-child(3)::before { left: 0; right: 0; top: 4px; height: 1px; background: var(--app-dim); }
.win__ctl i:nth-last-child(2)::before { inset: 0; border: 1px solid var(--app-dim); border-radius: 1px; }
.win__ctl i:last-child::before, .win__ctl i:last-child::after { left: -1px; right: -1px; top: 4px; height: 1px; background: var(--app-dim); transform: rotate(45deg); }
.win__ctl i:last-child::after { transform: rotate(-45deg); }

.fd__exe { width: 48px; height: 48px; border-radius: 11px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 12px -6px rgba(0, 0, 0, 0.8); }
.fd__exe img { width: 100%; height: 100%; }

/* 윈도우 02: 서명 안 된 앱을 처음 열 때 나오는 Windows의 PC 보호 창 */
.ss .win__bar { background: var(--deep); border-bottom-color: transparent; }
.ss .win__ctl i::before, .ss .win__ctl i::after { background: rgba(255, 255, 255, 0.8); }
.ss__body {
  position: relative; height: 210px; padding: 6px 22px 18px;
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--deep); color: #fff;
  border-radius: 0 0 var(--r-win) var(--r-win);
}
.ss__title { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.ss__lines { width: 100%; margin-top: 12px; display: grid; gap: 6px; }
.ss__lines i { width: 92%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); }
.ss__lines i:last-child { width: 64%; }
.ss__more { margin-top: 12px; font-size: 11.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ss__app { margin-top: 10px; font-size: 11px; color: rgba(255, 255, 255, 0.86); }
.ss__btns { margin-top: auto; align-self: stretch; display: flex; justify-content: flex-end; gap: 8px; }
.ss__btn { position: relative; height: 26px; padding: 0 14px; display: grid; place-items: center; border-radius: 4px; font-size: 11.5px; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
/* 커서가 추가 정보를 누르고 실행으로 옮겨 가요 */
.ss__cursor { left: 48px; top: 80px; }
.js [data-demo] .ss__cursor[data-at] { opacity: 0; transform: none; filter: none; transition: none; }
.js [data-demo] .ss__cursor[data-at].is-on { animation: ss-cursor 1900ms var(--ease-std) both; }
@keyframes ss-cursor {
  0% { opacity: 0; }
  12% { opacity: 1; transform: none; }
  52% { transform: none; }
  80%, 100% { opacity: 1; transform: translate(calc(100cqw - 176px), 96px); }
}

/* 윈도우 03: 설치 위치를 고르는 설치 창. 바탕은 실제 설치 창처럼 밝아요 */
.nsis__body {
  position: relative; height: 210px; padding: 18px 20px 16px;
  display: flex; flex-direction: column;
  background: #f5f5f7; color: #1d1d1f;
  border-radius: 0 0 var(--r-win) var(--r-win);
}
.nsis__h { font-size: 13px; font-weight: 650; }
.nsis__lines { margin-top: 10px; display: grid; gap: 6px; }
.nsis__lines i { width: 90%; height: 6px; border-radius: 3px; background: #d9dde2; }
.nsis__lines i:last-child { width: 56%; }
.nsis__path { margin-top: 16px; display: flex; gap: 6px; }
.nsis__field {
  flex: 1; min-width: 0; height: 26px; padding: 0 8px; display: flex; align-items: center;
  border-radius: 4px; background: #ffffff; box-shadow: inset 0 0 0 1px #b8bcc2;
  font-family: var(--mono); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nsis__field { display: block; line-height: 26px; }
.nsis__btn { position: relative; flex: none; height: 26px; padding: 0 12px; display: grid; place-items: center; border-radius: 4px; background: #ffffff; box-shadow: inset 0 0 0 1px #b8bcc2; font-size: 11.5px; font-weight: 500; }
.nsis__btn--go { background: #2f7fd6; color: #fff; box-shadow: none; }
.nsis__bar { margin-top: 14px; height: 6px; border-radius: 3px; background: #d9dde2; overflow: hidden; }
.nsis__bar i { display: block; height: 100%; background: #2f7fd6; }
.js [data-demo] .nsis__bar i[data-at] { transition-duration: 900ms; }
.nsis__btns { margin-top: auto; display: flex; justify-content: flex-end; gap: 8px; }
.nsis__btns .nsis__btn { min-width: 64px; }
.nsis__body > .cursor { right: 104px; bottom: 2px; }
