@font-face {
  font-family: GuideDisplay;
  src: url('../fonts/GmarketSansBold.woff2') format('woff2');
  font-display: swap;
  font-weight: 700;
}
@font-face {
  font-family: GuideBody;
  src: url('../fonts/PretendardVariable.woff2') format('woff2');
  font-display: swap;
  font-weight: 100 900;
}
:root {
  --pink: #ed3275;
  --ink: #302b34;
  --muted: #706775;
  --paper: #fcfafb;
  --line: #e7e1e5;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.7 GuideBody,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}
button {
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.35;
  word-break: keep-all;
}
.top {
  height: 88px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(252, 250, 251, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img:first-child {
  width: 32px;
  height: 32px;
}
.brand img:nth-child(2) {
  width: 148px;
  height: 27px;
}
.brand span {
  font-size: 14px;
  color: var(--muted);
  margin-left: 10px;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 650;
}
.top nav > a:last-of-type {
  padding: 10px 20px;
  border-radius: 24px;
  background: var(--ink);
  color: white;
}
.shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  max-width: 1680px;
  margin: auto;
}
#sidebar {
  position: sticky;
  top: 88px;
  height: calc(100dvh - 88px);
  overflow: auto;
  border-right: 1px solid var(--line);
  padding: 30px 24px;
  scrollbar-width: thin;
}
.search-wrap {
  position: sticky;
  top: -30px;
  background: var(--paper);
  padding: 6px 0 18px;
  z-index: 2;
}
.search-wrap label {
  font-weight: 700;
  font-size: 14px;
}
.search-box {
  display: flex;
  background: white;
  border: 1px solid #ded6dc;
  border-radius: 10px;
  margin-top: 9px;
  align-items: center;
}
.search-box:focus-within {
  border-color: var(--pink);
}
input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  padding: 10px;
  font-size: 14px;
  outline: none;
}
#clear-search {
  background: none;
  border: 0;
  padding: 6px 10px;
  font-size: 23px;
}
#search-status {
  font-size: 12px;
  color: var(--muted);
  min-height: 20px;
  padding-top: 6px;
}
.all-guides {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 20px;
}
.nav-group {
  margin: 0 0 22px;
}
.nav-group h2 {
  font-size: 13px;
  color: var(--pink);
  margin-bottom: 8px;
}
.nav-group a {
  display: block;
  padding: 7px 10px;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 6px;
  margin-left: -10px;
}
.nav-group a:hover {
  background: #f1e9ee;
}
.nav-group a[aria-current='page'] {
  color: var(--pink);
  background: #ffebf1;
  font-weight: 750;
}
.sidebar-note {
  font-size: 12px;
  color: var(--muted);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
main {
  min-width: 0;
  padding: 0 48px;
}
.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 20px;
  min-height: 590px;
  padding: 65px 0 50px;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.13em;
  font-weight: 750;
  color: var(--pink);
  margin-bottom: 24px;
}
.hero h1 {
  font-family: GuideDisplay, sans-serif;
  font-size: clamp(34px, 3.35vw, 60px);
  line-height: 1.38;
  letter-spacing: -0.06em;
}
.hero em {
  font-style: normal;
  color: var(--pink);
}
.lead {
  font-size: 20px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 24px;
  word-break: keep-all;
}
.hero > img {
  width: 100%;
  max-height: 490px;
  object-fit: contain;
  animation: arrive 0.7s both;
}
.start {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  border-bottom: 2px solid var(--ink);
  padding: 12px 0;
  margin-top: 26px;
  font-weight: 700;
}
.start span {
  font-size: 24px;
}
.home-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 25px;
}
.home-heading h2 {
  font-size: 26px;
}
.home-heading p {
  font-size: 14px;
  color: var(--muted);
}
.chapters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.chapter {
  position: relative;
  padding: 32px 16px 35px 0;
  border-bottom: 1px solid var(--line);
  margin-right: 25px;
  transition: color 0.2s;
}
.chapter span {
  font-size: 14px;
  color: var(--pink);
  font-weight: 750;
}
.chapter h2 {
  margin: 12px 0;
  font-size: 22px;
}
.chapter p {
  font-size: 14px;
  color: var(--muted);
}
.chapter b {
  position: absolute;
  right: 2px;
  top: 30px;
  font-size: 24px;
  font-weight: 400;
}
.chapter:hover {
  color: var(--pink);
}
.downloads {
  margin: 72px 0;
  padding: 42px;
  background: #ffe9f0;
  border-radius: 20px;
}
.downloads h2 {
  font-size: 26px;
}
.downloads p {
  margin: 10px 0 22px;
  color: var(--muted);
}
.downloads a {
  display: inline-block;
  font-weight: 700;
  border-bottom: 1px solid;
  padding: 4px 0;
  margin-right: 28px;
}
.guide {
  padding: 60px 0 0;
  scroll-margin-top: 110px;
}
.guide header h2 {
  font-family: GuideDisplay, sans-serif;
  font-size: clamp(28px, 3vw, 46px);
  letter-spacing: -0.04em;
}
.guide-body ol {
  list-style: none;
  margin: 38px 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.guide-body li {
  display: flex;
  gap: 12px;
}
.step-no {
  color: var(--pink);
  font-size: 19px;
  line-height: 1.4;
  font-weight: 800;
}
.guide-body h3 {
  font-size: 19px;
  margin-bottom: 12px;
}
.guide-body li p {
  font-size: 16px;
  color: var(--muted);
  word-break: keep-all;
  line-height: 1.8;
}
.note {
  background: #ffedf3;
  border-left: 3px solid var(--pink);
  padding: 16px 22px;
  font-size: 15px;
  margin: 0 0 30px;
  word-break: keep-all;
}
.screens {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 35px 16px;
  background: #f5f0f3;
  border-radius: 24px;
  min-height: 420px;
}
.screens figure {
  margin: 0;
  flex: 1;
  min-width: 0;
  text-align: center;
  max-width: 420px;
}
.screens .zoom {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  width: 100%;
  cursor: zoom-in;
}
.screens img {
  height: 480px;
  width: 100%;
  object-fit: contain;
  transition: transform 0.22s;
}
.screens .zoom:hover img {
  transform: translateY(-5px);
}
.screens.count-1 figure {
  max-width: 650px;
}
.screens figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}
.article-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0;
  color: var(--muted);
  font-size: 13px;
}
.copy-link {
  border: 0;
  border-bottom: 1px solid;
  background: none;
  font-size: 13px;
  padding: 4px;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-weight: 650;
}
.pager > a:last-child {
  text-align: right;
}
.pager small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 5px;
}
.manual-footer {
  font-size: 13px;
  padding: 50px 0 35px;
  color: var(--muted);
}
.manual-footer span {
  font-size: 12px;
}
.menu-toggle {
  display: none;
}
.skip {
  position: fixed;
  top: -60px;
  left: 16px;
  padding: 10px;
  background: white;
  z-index: 20;
}
.skip:focus {
  top: 8px;
}
#results {
  padding: 60px 0;
  min-height: 70vh;
}
#results h2 {
  font-size: 34px;
  margin-bottom: 28px;
}
.result {
  display: block;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.result h3 {
  font-size: 22px;
}
.result p {
  color: var(--muted);
  margin-top: 8px;
}
.result small {
  color: var(--pink);
}
dialog {
  border: 0;
  border-radius: 18px;
  background: var(--paper);
  padding: 50px 24px 24px;
  max-height: 92dvh;
  max-width: 95vw;
  text-align: center;
}
dialog::backdrop {
  background: #19151ed9;
  backdrop-filter: blur(8px);
}
dialog img {
  display: block;
  max-height: 76dvh;
  max-width: 86vw;
  width: auto;
  margin: auto;
}
dialog p {
  margin-top: 10px;
}
.close-dialog {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: none;
  font-weight: 700;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 10px 22px;
  border-radius: 20px;
  z-index: 20;
  display: none;
}
.toast.show {
  display: block;
}
[hidden] {
  display: none !important;
}
.js .guide:not(.active) {
  display: none;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1600px) {
  main {
    padding: 0 68px;
  }
  .hero {
    min-height: 660px;
  }
  .screens img {
    height: 560px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 235px minmax(0, 1fr);
  }
  #sidebar {
    padding: 24px 18px;
  }
  main {
    padding: 0 28px;
  }
  .brand span {
    display: none;
  }
  .hero {
    min-height: 520px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .lead {
    font-size: 18px;
  }
  .guide-body ol {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .guide-body h3 {
    margin-bottom: 5px;
  }
  .screens {
    gap: 14px;
    padding: 25px 12px;
  }
  .screens img {
    height: 370px;
  }
  .chapters {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-heading {
    display: block;
  }
  .home-heading p {
    margin-top: 10px;
  }
}
@media (max-width: 760px) {
  .top {
    height: 72px;
    padding: 0 18px;
  }
  .top nav {
    gap: 14px;
  }
  .top nav > a:first-child {
    display: none;
  }
  .top nav > a:last-of-type {
    font-size: 12px;
    padding: 8px 12px;
  }
  .brand {
    gap: 6px;
  }
  .brand img:first-child {
    width: 25px;
    height: 25px;
  }
  .brand img:nth-child(2) {
    width: 109px;
    height: 20px;
  }
  .menu-toggle {
    display: block;
    border: 0;
    background: none;
    font-weight: 700;
    padding: 8px 0;
  }
  .shell {
    display: block;
  }
  #sidebar {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    height: calc(100dvh - 72px);
    background: var(--paper);
    z-index: 4;
    padding: 24px;
  }
  .menu-open #sidebar {
    display: block;
  }
  .menu-open {
    overflow: hidden;
  }
  main {
    padding: 0 22px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 44px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero > img {
    height: 330px;
  }
  .hero .eyebrow {
    margin-bottom: 18px;
  }
  .lead {
    font-size: 17px;
  }
  .home-heading h2 {
    font-size: 23px;
  }
  .chapter h2 {
    font-size: 20px;
  }
  .chapter {
    padding-top: 24px;
    margin-right: 12px;
  }
  .downloads {
    margin: 42px 0;
    padding: 26px;
  }
  .downloads h2 {
    font-size: 23px;
  }
  .downloads p {
    font-size: 15px;
  }
  .guide {
    padding-top: 36px;
  }
  .guide header h2 {
    font-size: 30px;
  }
  .guide .eyebrow {
    margin-bottom: 15px;
  }
  .guide-body ol {
    margin-top: 28px;
    gap: 24px;
  }
  .screens {
    flex-wrap: wrap;
    gap: 28px;
    padding: 26px 14px;
  }
  .screens figure {
    flex: 0 0 100%;
    max-width: 310px;
  }
  .screens img {
    height: 480px;
  }
  .screens.count-1 figure {
    max-width: 100%;
  }
  .screens.count-1 img {
    height: auto;
    max-height: 520px;
  }
  .guide-body li p {
    font-size: 16px;
  }
  .pager {
    font-size: 14px;
  }
  .pager a {
    max-width: 48%;
  }
  .article-foot {
    font-size: 12px;
  }
  #results {
    padding-top: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .top,
  #sidebar,
  .home,
  #results,
  .pager,
  .copy-link,
  .manual-footer,
  dialog {
    display: none !important;
  }
  .shell {
    display: block;
  }
  main {
    padding: 0;
  }
  .guide,
  .js .guide:not(.active) {
    display: block !important;
    break-after: page;
    padding: 10mm;
  }
  .guide header h2 {
    font: 700 26pt GuideBody;
  }
  .guide-body ol {
    display: block;
  }
  .guide-body li {
    margin-bottom: 10px;
  }
  .screens {
    padding: 10px;
    min-height: 0;
  }
  .screens img {
    height: 100mm;
  }
  .article-foot {
    margin: 10px;
  }
  .note {
    margin-bottom: 10px;
  }
}

/* One focus boundary for the composite search field. */
.search-box:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pink) 18%, transparent);
}
.search-box input:focus-visible {
  outline: none;
  box-shadow: none;
}
.manual-preferences {
  margin-left: auto;
}
#manual-ai-guide {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
@media (max-width: 760px) {
  #manual-ai-guide {
    order: 3;
    font-size: 12px;
  }
}
.hero .lead {
  white-space: pre-line;
}
:root[data-theme='dark'] {
  --ink: #f5f2f5;
  --muted: #bbb4c0;
  --paper: #19181c;
  --line: #3d3941;
  --pink: #ff79a7;
  --control-bg: #26242a;
}
[data-theme='dark'] .top {
  background: rgba(25, 24, 28, 0.96);
}
[data-theme='dark'] .brand img:nth-child(2) {
  filter: brightness(0) invert(1);
}
[data-theme='dark'] .search-box {
  background: #26242a;
  border-color: #514b56;
}
[data-theme='dark'] input {
  color: var(--ink);
}
[data-theme='dark'] input::placeholder {
  color: #afa7b5;
}
[data-theme='dark'] .nav-group a:hover {
  background: #302b34;
}
[data-theme='dark'] .nav-group a[aria-current='page'] {
  background: #402831;
  color: #ffa4c1;
}
[data-theme='dark'] .downloads,
[data-theme='dark'] .note {
  background: #35262c;
}
[data-theme='dark'] .screens {
  background-color: #242127;
}
[data-theme='dark'] .top nav > a:last-of-type,
[data-theme='dark'] .toast {
  color: #19181c;
}
html:not([lang='ko']) h1,
html:not([lang='ko']) h2,
html:not([lang='ko']) h3 {
  word-break: normal;
  overflow-wrap: break-word;
}
html:not([lang='ko']) .hero h1 {
  font-family: GuideBody, sans-serif;
  font-weight: 800;
  letter-spacing: -0.045em;
  font-size: clamp(34px, 3.6vw, 56px);
}
html:not([lang='ko']) .guide header h2 {
  font-family: GuideBody, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}
@media (max-width: 1180px) {
  .top {
    gap: 16px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .top nav {
    gap: 16px;
  }
}
@media (max-width: 760px) {
  .top {
    height: 128px;
    flex-wrap: wrap;
    padding: 12px 18px;
    gap: 8px;
  }
  .top nav {
    margin-left: auto;
    gap: 14px;
  }
  .manual-preferences {
    order: 3;
    flex-basis: 100%;
    margin: 0;
    display: flex;
    justify-content: flex-end;
  }
  #sidebar {
    top: 128px;
    height: calc(100dvh - 128px);
  }
  html {
    scroll-padding-top: 148px;
  }
  .top nav > a:last-of-type {
    max-width: 130px;
    text-align: center;
    font-size: 11px;
  }
  .brand img:nth-child(2) {
    width: 102px;
  }
  .brand img:first-child {
    width: 23px;
    height: 23px;
  }
}

[data-theme='dark'] .search-box:focus-within {
  border-color: var(--pink);
}

/* BOM petals echo the overlapping pink corners in the reference deck. */
:root {
  --body: GuideBody, -apple-system, BlinkMacSystemFont, sans-serif;
  --pink-ink: #ce205b;
  --petal: #ff41801a;
  --petal-strong: #ff418026;
}
:root[data-theme='dark'] {
  --pink-ink: #ff8fb5;
  --petal: #ff41800e;
  --petal-strong: #ff41801c;
}
body {
  isolation: isolate;
}
body::before {
  content: '';
  position: fixed;
  inset: 88px 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle 105px at calc(100% + 25px) 30px, var(--petal-strong) 99%, transparent),
    radial-gradient(circle 105px at calc(100% - 55px) -55px, var(--petal) 99%, transparent),
    radial-gradient(circle 105px at calc(100% + 65px) 115px, var(--petal) 99%, transparent),
    radial-gradient(
      circle 125px at calc(100% - 30px) calc(100% + 70px),
      var(--petal-strong) 99%,
      transparent
    ),
    radial-gradient(
      circle 100px at calc(100% + 45px) calc(100% - 20px),
      var(--petal) 99%,
      transparent
    ),
    radial-gradient(circle 100px at 245px calc(100% + 55px), var(--petal) 99%, transparent);
}
.screens {
  border: 1px solid var(--line);
  background-image:
    radial-gradient(circle 95px at 100% 100%, var(--petal-strong) 99%, transparent),
    radial-gradient(
      circle 95px at calc(100% - 75px) calc(100% + 50px),
      var(--petal) 99%,
      transparent
    );
}
[data-theme='dark'] .screens {
  background-color: #242127;
}
@media (max-width: 760px) {
  body::before {
    top: 128px;
  }
}

/* Keep AI guide beside the second-row preferences on small screens. */
@media (max-width: 760px) {
  .manual-preferences {
    flex-basis: auto;
    flex: 1;
  }
}
