/* Boost public styles. The layout, type scale and spacing are copied from the
   owner's personal site (dongguri.org, itself measured from https://lu.ke/);
   only the colour tokens and the Boost-specific blocks at the end differ.
   Palette: Boost colour palette v2 (white × charcoal × orange). */
body:has(.public-desk) {
  --bg: #ffffff;
  --fg: #2b3038;        /* 차콜 */
  --dim: #60646a;       /* 뉴트럴 600 */
  --rule: #e6e6e7;      /* 뉴트럴 100 */
  --accent: #7f4701;    /* 오렌지 900: 흰 바탕 위의 주황 글자 */
  --orange: #fe8e02;    /* 오렌지: 장식 전용, 글자에 쓰지 않는다 */
  --focus: #b26301;     /* 오렌지 700: 3:1 이상의 초점 표시 */
  --cream: #fcffd6;     /* 크림 */
  --code-bg: #f7f7f7;   /* 뉴트럴 050 */
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  color-scheme: light;
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.public-desk, .public-desk *, body:has(.public-desk) .language-switcher,
body:has(.public-desk) .language-switcher *, body:has(.public-desk) .site-footer {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.public-desk {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  color: var(--fg);
  font: inherit;
}
.public-desk a {
  color: var(--accent);
  text-decoration: none;
  text-wrap: wrap;
  overflow-wrap: break-word;
}
.public-desk a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.public-desk a:focus-visible, body:has(.public-desk) .language-switcher a:focus-visible,
.public-desk [tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.desk-home .desk-header { margin-bottom: 40px; padding: 0; }
.desk-home .desk-identity { display: block; }
.desk-home .avatar {
  display: inline;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--cream);
  margin-bottom: 16px;
}
.desk-home .desk-identity h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.7;
}
.desk-home h1 span { color: var(--orange); }
.desk-home .desk-role { margin-bottom: 16px; color: var(--dim); }
.desk-home .desk-links {
  display: flex;
  align-items: stretch;
  min-height: 18px;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 12px;
}
.desk-home .desk-links a {
  display: flex;
  align-items: center;
  width: auto;
  height: auto;
  color: var(--dim);
  padding: 8px;
  margin: -8px;
  transition: color 0.2s;
}
.desk-home .desk-links a:hover { color: var(--fg); text-decoration: none; }
.desk-home .desk-links svg { display: inline; width: 16px; height: 16px; fill: currentColor; }
.desk-home > .desk-section,
.public-desk.desk-home > .desk-section + .desk-section { margin-top: 48px; padding: 0; }
.desk-home .desk-heading { display: block; margin: 0 0 16px; }
.desk-home .desk-heading h2 {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.desk-home .desk-heading h2 a { color: inherit; font: inherit; }
.desk-intro p { font-size: 15px; line-height: 1.75; color: var(--fg); }
.desk-intro p + p { margin-top: 0.6rem; }
.public-desk[lang="ko"] .desk-intro p { word-break: keep-all; overflow-wrap: break-word; }
.desk-home .desk-posts, .desk-home .desk-items { display: block; list-style: none; }
.desk-home .desk-posts > li, .desk-home .desk-items > li { margin-bottom: 0.6rem; }
.desk-home .desk-item, .desk-home .desk-post { font-size: 15px; line-height: 1.7; }
.desk-home .desk-item a, .desk-home .desk-post > a, .desk-home .desk-item-title {
  font-size: 15px;
  font-weight: 500;
  line-height: inherit;
  word-break: normal;
  text-wrap: wrap;
  overflow-wrap: break-word;
}
.desk-home .desk-inline-detail, .desk-home .desk-inline-meta,
.desk-home .desk-meta, .desk-home .desk-summary { color: var(--dim); font-size: 15px; line-height: 1.7; }
.desk-home .desk-meta { display: block; margin-top: 2px; font-size: 13px; }
.desk-home .desk-meta span + time::before { content: " · "; padding: 0; }
.desk-home .desk-project-line { display: inline; }
.desk-home .desk-project-links { display: inline; margin-left: 8px; white-space: normal; }
/* A compact, native language control is retained for the existing multilingual site. */
body:has(.public-desk) .language-switcher {
  position: absolute;
  top: 4px;
  right: max(24px, calc((100% - 600px) / 2 + 24px));
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
}
body:has(.public-desk) .language-switcher a,
body:has(.public-desk) .language-switcher a.is-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 40px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
}
body:has(.public-desk) .language-switcher a:hover,
body:has(.public-desk) .language-switcher a:focus-visible { color: var(--fg); }
body:has(.public-desk) .language-switcher a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
body:has(.public-desk) .language-switcher-icon { display: none; }
body:has(.desk-article) .language-switcher { right: max(24px, calc((100% - 680px) / 2 + 24px)); }
/* Child routes share the source palette; article proportions follow Luke's article page. */
.public-desk.desk-subpage { font-size: 16px; line-height: 1.75; }
.desk-subpage:has(.desk-article) { max-width: 680px; }
.desk-subpage > .desk-header { margin: 0 0 40px; padding: 0; }
.desk-subpage h1 { font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -0.03em; color: var(--fg); }
.desk-subpage .desk-back-link { display: inline-block; margin: 0 0 24px; color: var(--dim); font-size: 14px; }
.desk-subpage .desk-lead, .desk-subpage .desk-article-description { margin-top: 16px; font-size: 16px; line-height: 1.75; color: var(--dim); }
.desk-subpage .desk-section { padding: 0; margin-top: 48px; }
.desk-subpage .desk-section h2 { margin-bottom: 16px; font-size: 13px; font-weight: 500; line-height: 1.7; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.desk-text-list { display: grid; gap: 16px; list-style: none; }
.desk-text-item { display: block; color: var(--fg); font-size: 15px; line-height: 1.7; }
.desk-text-item > a, .desk-text-item > .desk-text-title { display: inline; font-weight: 500; overflow-wrap: break-word; }
.desk-text-item small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; line-height: 1.55; color: var(--dim); overflow-wrap: break-word; }
.desk-subpage .desk-article > .desk-header { margin: 0 0 40px; padding: 0 0 40px; border-bottom: 1px solid var(--rule); }
.desk-article .desk-header > .desk-back-link { display: block; margin: 0 0 80px; }
.desk-subpage .desk-article h1 { margin: 16px 0 20px; font-size: clamp(32px, 7vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -0.045em; }
.desk-subpage .desk-article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 13px; line-height: 1.7; color: var(--dim); }
.desk-subpage .article-body { color: var(--fg); font-size: 16px; line-height: 1.75; overflow-wrap: break-word; }
.desk-subpage .article-body > * + * { margin-top: 24px; }
.desk-subpage .article-body p, .desk-subpage .article-body ul, .desk-subpage .article-body ol { margin-bottom: 0; }
.desk-subpage .article-body ul, .desk-subpage .article-body ol { padding-left: 24px; }
.desk-subpage .article-body li + li { margin-top: 8px; }
.desk-subpage .article-body h2, .desk-subpage .article-body h3, .desk-subpage .article-body h4 { margin: 64px 0 0; font-weight: 600; line-height: 1.3; letter-spacing: -0.025em; color: var(--fg); }
.desk-subpage .article-body h2 { font-size: 24px; }
.desk-subpage .article-body h3, .desk-subpage .article-body h4 { font-size: 19px; }
.desk-subpage .article-body blockquote { margin: 24px 0 0; padding-left: 20px; border-left: 2px solid var(--orange); color: var(--fg); font-size: 1.025em; }
.desk-subpage .article-body figure { margin: 40px 0; }
.desk-subpage .article-body img { display: block; max-width: 100%; height: auto; }
.desk-subpage .article-body figcaption { margin-top: 12px; color: var(--dim); font-size: 13px; }
.desk-subpage .article-body hr { margin: 48px 0; border: 0; border-top: 1px solid var(--rule); }
.desk-subpage .article-body code { padding: 0.15em 0.35em; background: var(--code-bg); border-radius: 4px; font: 0.875em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.desk-subpage .article-body pre { padding: 16px; background: var(--code-bg); border-radius: 8px; overflow-x: auto; line-height: 1.6; }
.desk-subpage .article-body pre code { padding: 0; background: none; }
.desk-article > .desk-back-link { margin: 48px 0 0; }
.public-desk[lang="ko"] .desk-role, .public-desk[lang="ko"] .desk-detail-text,
.public-desk[lang="ko"] .article-body, .public-desk[lang="ko"] .desk-lead,
.public-desk[lang="ko"] .desk-text-item small, .public-desk[lang="ko"] h1 { word-break: keep-all; overflow-wrap: break-word; }
body:has(.public-desk) .site-footer { max-width: 600px; width: 100%; margin: 0 auto; padding: 0 24px 48px; color: var(--dim); font-size: 13px; }
body:has(.desk-article) .site-footer { max-width: 680px; }
body:has(.public-desk) .top-social-links, body:has(.public-desk) .hopping-dongguri { display: none; }
.public-desk ::selection { background: var(--cream); color: var(--fg); }
/* ---- Boost additions: blocks the personal site does not have. ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.desk-home .desk-dot { color: var(--dim); }
.desk-subpage > .desk-header .desk-article-meta { margin-top: 8px; }
.desk-subpage .desk-note { margin-top: 48px; color: var(--dim); font-size: 13px; line-height: 1.55; }
.desk-subpage .desk-columns { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px 24px; }
.desk-library-books { display: block; color: var(--fg); }
.desk-library-address { display: block; }
.desk-subpage .desk-registration { margin: 0 0 40px; padding: 20px 24px; background: var(--cream); border-radius: 8px; }
.desk-subpage .desk-registration h2 { margin-bottom: 12px; font-size: 13px; font-weight: 500; line-height: 1.7; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.desk-registration dl { display: grid; gap: 6px; margin-bottom: 12px; font-size: 15px; line-height: 1.6; }
.desk-registration dl > div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; }
.desk-registration dt { color: var(--dim); }
.desk-registration-links a { font-weight: 500; }
.desk-registration-closed { color: var(--dim); }
.desk-subpage .desk-signup { margin-top: 32px; }
.desk-figures { margin-top: 24px; }
.desk-subpage .article-body figure.poster img { max-width: 540px; width: 100%; }
.desk-subpage .article-body video { display: block; max-width: 100%; height: auto; }
.desk-subpage .article-body .callout { padding: 16px 20px; background: var(--code-bg); border-radius: 8px; }
.desk-subpage .article-body details > summary { cursor: pointer; font-weight: 500; }
.desk-subpage .article-body details > * + * { margin-top: 12px; }
.desk-steps { display: grid; gap: 32px; list-style: none; }
.desk-subpage .desk-steps h3 { font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -0.02em; }
.desk-step-status { color: var(--dim); font-weight: 400; }
.desk-step-summary { margin-top: 4px; color: var(--dim); }
.desk-steps .article-body { margin-top: 12px; font-size: 15px; }
.desk-step-result { margin-top: 12px; }
.desk-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 40px; }
.desk-totals dt { color: var(--dim); font-size: 13px; line-height: 1.55; }
.desk-totals dd { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.table-frame { overflow-x: auto; }
.public-desk table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.public-desk th, .public-desk td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.public-desk thead th { color: var(--dim); font-size: 13px; font-weight: 500; }
.public-desk td small { display: block; color: var(--dim); font-size: 12px; }
.public-desk .num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.desk-ledger td:first-child, .desk-ledger th:nth-child(3), .desk-ledger td:nth-child(3) { white-space: nowrap; }
.public-desk[lang="ko"] .desk-ledger th, .public-desk[lang="ko"] .desk-ledger td { word-break: keep-all; overflow-wrap: break-word; }
.table-caption { margin-top: 8px; color: var(--dim); font-size: 13px; }
@media (max-width: 520px) {
  .desk-home > .desk-section,
  .public-desk.desk-home > .desk-section + .desk-section { margin-top: 36px; }
  .desk-home .desk-heading { margin-bottom: 4px; }
  .desk-home .desk-posts > li, .desk-home .desk-items > li { margin: 0; padding: 8px 0; }
  .desk-home .desk-posts > li:last-child, .desk-home .desk-items > li:last-child { padding-bottom: 0; }
  .desk-home .desk-dash { display: none; }
  .desk-home .desk-detail-text, .desk-home .desk-project-links { display: block; margin: 2px 0 0; font-size: 13px; line-height: 1.55; }
  .desk-home .desk-project-links a { font-size: inherit; }
  .desk-subpage:has(.desk-article) { padding-top: 32px; }
  .desk-article .desk-header > .desk-back-link { margin-bottom: 56px; }
  .desk-totals { grid-template-columns: 1fr; gap: 8px; }
  .desk-totals > div { display: flex; justify-content: space-between; gap: 16px; }
  .desk-registration dl > div { grid-template-columns: 1fr; gap: 0; }
  .desk-subpage .desk-registration { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .public-desk a { transition: none; }
}
