/* Lesson shell for the Week 08 guide. Scoped here so other weeks can evolve independently. */
.week-eight-document {
  scroll-behavior: auto;
}
body.course-contents-programming.week-eight-page {
  --week-five-reading-width: none;
  --week-five-radius: 6px;
  --week-five-label-col: 112px;
  --week-five-display: "Space Grotesk Variable", "Space Grotesk", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --week-five-text: "Inter", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --week-five-size-display: clamp(36px, 4.2vw, 48px);
  --week-five-size-title: 28px;
  --week-five-size-section: 23px;
  --week-five-size-subhead: 19px;
  --week-five-size-body: 16px;
  --week-five-size-code: 12px;
  --week-five-size-secondary: 14px;
  --week-five-size-caption: 13px;
  --week-five-size-label: 10px;
  font-family: var(--week-five-text);
  font-size: var(--week-five-size-body);
  line-height: 1.7;
}
body.course-contents-programming.week-eight-page .skip-link {
  transition: none;
}
body.course-contents-programming.week-eight-page .lesson-sequence a, body.course-contents-programming.week-eight-page .toc a, body.course-contents-programming.week-eight-page .week-five-hero-actions a, body.course-contents-programming.week-eight-page .official-case-copy :is(h3, h4) a, body.course-contents-programming.week-eight-page .code-copy-button {
  transition-property: transform, border-color, color, background-color;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-out);
}
body.course-contents-programming.week-eight-page .lesson-sequence a:active:not(:focus-visible), body.course-contents-programming.week-eight-page .toc a:active:not(:focus-visible), body.course-contents-programming.week-eight-page .week-five-hero-actions a:active:not(:focus-visible), body.course-contents-programming.week-eight-page .official-case-copy :is(h3, h4) a:active:not(:focus-visible), body.course-contents-programming.week-eight-page .code-copy-button:active:not(:focus-visible) {
  transform: scale(0.97);
}
body.course-contents-programming.week-eight-page .week-five-hero {
  border-bottom-color: var(--line-strong);
}
body.course-contents-programming.week-eight-page .week-five-hero .hero-inner {
  padding: 48px 0px;
  grid-template-columns: minmax(0px, 1.06fr) minmax(360px, 0.74fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}
body.course-contents-programming.week-eight-page .week-five-hero-copy {
  min-width: 0px;
}
body.course-contents-programming.week-eight-page .week-five-hero h1 {
  max-width: 15ch;
  font-family: var(--week-five-display);
  font-size: var(--week-five-size-display);
  line-height: 1.08;
}
body.course-contents-programming.week-eight-page .week-five-hero .lead {
  max-width: 620px;
  margin-top: 20px;
  font-family: var(--week-five-text);
  font-size: var(--week-five-size-body);
  font-weight: 400;
  line-height: 1.7;
}
body.course-contents-programming.week-eight-page .week-five-hero-visual {
  min-width: 0px;
  margin: 0px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--week-five-radius);
  background: var(--surface);
}
body.course-contents-programming.week-eight-page .week-five-hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border: 0px;
  border-radius: 0px;
  background: var(--surface);
  box-shadow: none;
}
body.course-contents-programming.week-eight-page .week-five-hero-visual figcaption {
  margin: 0px;
  padding: 11px 14px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.55;
}
body.course-contents-programming.week-eight-page .layout, body.course-contents-programming.week-eight-page main.layout {
  padding-top: 52px;
  grid-template-columns: minmax(0px, 1fr) 240px;
  gap: clamp(36px, 5vw, 68px);
}
body.course-contents-programming.week-eight-page .article {
  min-width: 0px;
  padding: 0px;
  border: 0px;
  border-radius: 0px;
  overflow-x: clip;
  background: transparent;
  box-shadow: none;
}
body.course-contents-programming.week-eight-page .lesson-visual img, body.course-contents-programming.week-eight-page .article img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}
body.course-contents-programming.week-eight-page p[data-pretext-laid-out], body.course-contents-programming.week-eight-page li[data-pretext-laid-out] {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}
body.course-contents-programming.week-eight-page .article .document-title {
  max-width: var(--week-five-reading-width);
  margin: 0px 0px 22px;
  color: var(--ink-strong);
  font-family: var(--week-five-display);
  font-size: var(--week-five-size-title);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
  word-break: keep-all;
}
body.course-contents-programming.week-eight-page .week-five-lesson-facts {
  max-width: var(--week-five-reading-width);
  margin: 0px 0px 30px;
  border-top: 1px solid var(--line-strong);
}
body.course-contents-programming.week-eight-page .week-five-lesson-facts > div {
  padding: 10px 0px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: var(--week-five-label-col) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
}
body.course-contents-programming.week-eight-page .week-five-lesson-facts dt, body.course-contents-programming.week-eight-page .week-five-lesson-facts dd {
  margin: 0px;
}
body.course-contents-programming.week-eight-page .week-five-lesson-facts dt {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: var(--week-five-size-label);
  font-weight: 600;
}
body.course-contents-programming.week-eight-page .week-five-lesson-facts dd {
  color: var(--ink);
  font-family: var(--week-five-text);
  font-size: var(--week-five-size-secondary);
  font-weight: 400;
  line-height: 1.55;
}
body.course-contents-programming.week-eight-page .article > p, body.course-contents-programming.week-eight-page .article > pre, body.course-contents-programming.week-eight-page .article > ul:not([class]), body.course-contents-programming.week-eight-page .article > ol:not([class]), body.course-contents-programming.week-eight-page .article > h2, body.course-contents-programming.week-eight-page .article > h3, body.course-contents-programming.week-eight-page .article > h4, body.course-contents-programming.week-eight-page .article > details, body.course-contents-programming.week-eight-page .article > .callout, body.course-contents-programming.week-eight-page .article > .worksheet, body.course-contents-programming.week-eight-page .article > .checkpoint, body.course-contents-programming.week-eight-page .article > .goal-contract, body.course-contents-programming.week-eight-page .article > .mission-route, body.course-contents-programming.week-eight-page .article > .exit-gate, body.course-contents-programming.week-eight-page .article > .completion-criteria, body.course-contents-programming.week-eight-page .article > .check-output, body.course-contents-programming.week-eight-page .article > .submission-strip, body.course-contents-programming.week-eight-page .article > .week-five-lesson-facts {
  max-width: var(--week-five-reading-width);
}
body.course-contents-programming.week-eight-page .article h2 {
  display: block;
  counter-increment: none;
  scroll-margin-top: 92px;
}
body.course-contents-programming.week-eight-page .article h2::before {
  content: none;
}
body.course-contents-programming.week-eight-page .article h3, body.course-contents-programming.week-eight-page .article h4 {
  scroll-margin-top: 92px;
}
body.course-contents-programming.week-eight-page .callout-title, body.course-contents-programming.week-eight-page summary.callout-title {
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: var(--week-five-size-label);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
body.course-contents-programming.week-eight-page mark, body.course-contents-programming.week-eight-page .article :is(p, li) strong {
  background: rgb(255, 227, 74);
  color: rgb(13, 17, 14);
  padding: 0.05em 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
body.course-contents-programming.week-eight-page code, body.course-contents-programming.week-eight-page kbd, body.course-contents-programming.week-eight-page samp {
  font-size: 0.75em;
}
body.course-contents-programming.week-eight-page .callout-abstract {
  margin: 0px;
  padding: 20px 0px 10px;
  border-right: 0px;
  border-bottom: 0px;
  border-left: 0px;
  border-image: none;
  border-top: 1px solid var(--line-strong);
  border-radius: 0px;
  background: transparent;
}
body.course-contents-programming.week-eight-page .callout-abstract .callout-title {
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
body.course-contents-programming.week-eight-page .callout-abstract ol {
  margin: 4px 0px 0px;
  padding: 0px;
  list-style: none;
  counter-reset: learning-goal 0;
}
body.course-contents-programming.week-eight-page .callout-abstract ol li {
  margin: 0px;
  padding: 7px 0px;
  display: grid;
  grid-template-columns: var(--week-five-label-col) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  counter-increment: learning-goal 1;
}
body.course-contents-programming.week-eight-page .callout-abstract ol li::before {
  content: counter(learning-goal, decimal-leading-zero);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: inherit;
}
body.course-contents-programming.week-eight-page .callout-abstract ol li > span {
  min-width: 0px;
}
body.course-contents-programming.week-eight-page .toc {
  z-index: 2;
  padding: 4px 0px 4px 18px;
  border-top: 0px;
  border-right: 0px;
  border-bottom: 0px;
  border-image: none;
  border-left: 1px solid var(--line-strong);
  border-radius: 0px;
  background: var(--paper);
}
body.course-contents-programming.week-eight-page .toc-title {
  margin: 0px 0px 10px 9px;
}
body.course-contents-programming.week-eight-page .toc a {
  border-radius: 3px;
}
body.course-contents-programming.week-eight-page .toc a[aria-current="location"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}
body.course-contents-programming.week-eight-page > .footer-note {
  margin: -46px auto 46px;
}
@media (hover: hover) and (pointer: fine) {
  body.course-contents-programming.week-eight-page .lesson-sequence a:hover, body.course-contents-programming.week-eight-page .week-five-secondary-action:hover {
    border-color: var(--accent-ink);
    color: var(--accent-strong);
    text-decoration: none;
  }
  body.course-contents-programming.week-eight-page .toc a:hover {
    background: var(--accent-soft);
    color: var(--accent-strong);
    text-decoration: none;
  }
}
@media (hover: none), (pointer: coarse) {
  body.course-contents-programming.week-eight-page a:not(:active):hover {
    text-decoration: none;
  }
  body.course-contents-programming.week-eight-page .lesson-breadcrumb a:not(:active):hover {
    color: var(--muted);
  }
  body.course-contents-programming.week-eight-page .lesson-breadcrumb .lesson-course:not(:active):hover {
    color: var(--ink-strong);
  }
  body.course-contents-programming.week-eight-page .lesson-sequence a:not(:active):hover, body.course-contents-programming.week-eight-page .toc a:not(:active):hover, body.course-contents-programming.week-eight-page .week-five-hero-actions a:not(:active):hover, body.course-contents-programming.week-eight-page .official-case-copy :is(h3, h4) a:not(:active):hover {
    text-decoration: none;
    transform: none !important;
  }
  body.course-contents-programming.week-eight-page .toc a:not([aria-current="location"]):not(:active):hover {
    background: transparent !important;
    color: var(--muted) !important;
  }
  body.course-contents-programming.week-eight-page .toc a[aria-current="location"]:not(:active):hover {
    background: var(--accent-soft) !important;
    color: var(--accent-strong) !important;
  }
  body.course-contents-programming.week-eight-page .lesson-sequence a:not(:active):hover {
    border-color: var(--line) !important;
    background: transparent !important;
    color: var(--muted) !important;
  }
}
@media (max-width: 980px) {
  body.course-contents-programming.week-eight-page .week-five-hero .hero-inner {
    grid-template-columns: minmax(0px, 1fr) minmax(300px, 0.72fr);
    gap: 34px;
  }
  body.course-contents-programming.week-eight-page .week-five-hero h1 {
    font-size: clamp(32px, 5.4vw, 44px);
  }
  body.course-contents-programming.week-eight-page .layout, body.course-contents-programming.week-eight-page main.layout {
    padding-top: 0px;
    grid-template-columns: 1fr;
    gap: 34px;
  }
  body.course-contents-programming.week-eight-page .toc {
    position: sticky;
    top: 58px;
    z-index: 40;
    order: -1;
    max-height: none;
    padding: 9px 0px;
    border-top: 0px;
    border-right: 0px;
    border-left: 0px;
    border-image: none;
    border-bottom: 1px solid var(--line-strong);
    overflow: auto hidden;
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(14px);
    scrollbar-width: none;
  }
  body.course-contents-programming.week-eight-page .toc::-webkit-scrollbar {
    display: none;
  }
  body.course-contents-programming.week-eight-page .toc-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0px, 0px, 0px, 0px);
    white-space: nowrap;
  }
  body.course-contents-programming.week-eight-page .toc ol {
    width: max-content;
    display: flex;
    gap: 4px;
  }
  body.course-contents-programming.week-eight-page .toc li {
    flex: 0 0 auto;
  }
  body.course-contents-programming.week-eight-page .toc .toc-level-3 {
    display: none;
  }
  body.course-contents-programming.week-eight-page .toc a {
    padding: 8px 11px;
    white-space: nowrap;
  }
  body.course-contents-programming.week-eight-page .article h2, body.course-contents-programming.week-eight-page .article h3, body.course-contents-programming.week-eight-page .article h4 {
    scroll-margin-top: 122px;
  }
}
@media (max-width: 760px) {
  body.course-contents-programming.week-eight-page .week-five-hero .hero-inner {
    min-height: 0px;
    padding: 36px 0px 34px;
    grid-template-columns: 1fr;
    gap: 30px;
  }
  body.course-contents-programming.week-eight-page .week-five-hero h1 {
    max-width: 17ch;
    font-size: clamp(30px, 9vw, 40px);
  }
  body.course-contents-programming.week-eight-page .week-five-hero .lead {
    margin-top: 16px;
    font-size: var(--week-five-size-body);
  }
  body.course-contents-programming.week-eight-page .week-five-hero-visual {
    width: min(100%, 560px);
  }
  body.course-contents-programming.week-eight-page .toc {
    top: 68px;
  }
  body.course-contents-programming.week-eight-page .article .document-title {
    font-size: 24px;
  }
  body.course-contents-programming.week-eight-page {
    --week-five-label-col: 92px;
  }
  body.course-contents-programming.week-eight-page .week-five-lesson-facts > div {
    gap: 14px;
  }
  body.course-contents-programming.week-eight-page .callout-abstract ol li {
    gap: 14px;
  }
  body.course-contents-programming.week-eight-page > .footer-note {
    width: min(100% - 32px, 1180px);
    margin-top: -36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.course-contents-programming.week-eight-page .lesson-sequence a, body.course-contents-programming.week-eight-page .toc a, body.course-contents-programming.week-eight-page .week-five-hero-actions a, body.course-contents-programming.week-eight-page .official-case-copy :is(h3, h4) a {
    transition: none;
  }
}
@media print {
  body.course-contents-programming.week-eight-page .week-five-hero .hero-inner {
    min-height: 0px;
    display: block;
  }
  body.course-contents-programming.week-eight-page .week-five-hero-visual {
    max-width: 520px;
    margin-top: 24px;
  }
}
