/* Project ownership and the reasoning behind each fix. */
.project-card { scroll-margin-top: 96px; }
.intro-summary { display: flex; align-items: baseline; gap: 16px; margin: 0; }
.intro-summary dt { flex: none; color: var(--navy); font-size: 15px; font-weight: 800; }
.intro-summary dd { margin: 0; color: #46546a; font-size: 16px; line-height: 1.7; }
.section-rail { width: 148px; padding: 12px 10px; }
.section-rail a { grid-template-columns: 12px minmax(0, 1fr); gap: 6px; white-space: normal; }
.project-focus { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: 20px; padding: 28px 30px; }
.project-focus + .key-results { margin-top: 0; }
.role-panel, .trouble-panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 10px; }
.role-panel { background: var(--blue-soft); border-top: 4px solid var(--blue); }
.trouble-panel { background: #fafbf9; border-top: 4px solid #397262; }
.focus-label { margin: 0 0 10px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.trouble-panel .focus-label { color: #326454; }
.project-focus h4 { margin: 0 0 22px; color: var(--navy); font-size: 22px; line-height: 1.45; letter-spacing: -.025em; }
.role-tasks { display: grid; gap: 22px; padding: 0; margin: 0; list-style: none; }
.role-tasks li { color: #46546a; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.role-tasks strong { display: block; margin-bottom: 6px; color: var(--navy); font-size: 15px; }
.trouble-steps { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: investigation; }
.trouble-steps li { position: relative; padding-left: 32px; color: #46546a; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; counter-increment: investigation; }
.trouble-steps li::before { content: counter(investigation, decimal-leading-zero); position: absolute; left: 0; top: 1px; color: #397262; font-size: 12px; font-weight: 800; }
.trouble-steps strong { display: block; margin-bottom: 6px; color: var(--navy); font-size: 15px; }
.focus-link { display: inline-block; margin-top: 24px; color: #245e4e; font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.other-projects .artifact-item .team-role { display: inline-block; margin: 8px 0; color: var(--blue-dark); font-weight: 800; }
.artifact-page #role { border-top: 4px solid var(--blue); }
.artifact-page #troubleshooting, .artifact-page #trace32 { border-top: 4px solid #397262; }
.artifact-page .role-tasks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.artifact-page .panel, .artifact-page .panel [id] { scroll-margin-top: 130px; }
.artifact-page .steps { grid-template-columns: minmax(0, 1fr); }
.artifact-page .steps li { min-width: 0; overflow-wrap: anywhere; }
.artifact-page .callout { overflow-wrap: anywhere; }
.artifact-page .panel > .focus-label { color: #326454; }
.artifact-page #role > .focus-label { color: var(--blue); }
@media (min-width: 901px) {
  #bootloader-project .results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #bootloader-project .artifact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .project-focus { grid-template-columns: 1fr; }
  .artifact-page .role-tasks { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .intro-summary { display: grid; gap: 5px; }
  .project-focus { padding: 24px 16px; gap: 20px; }
  .role-panel, .trouble-panel { padding: 20px 16px; }
  .project-focus h4 { font-size: 20px; }
  .artifact-page .panel, .artifact-page .panel [id] { scroll-margin-top: 180px; }
  .project-meta, .artifact-page .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-meta > div:last-child, .artifact-page .meta-grid > div:last-child { grid-column: 1 / -1; border-left: 0; }
  .project-meta > div:nth-child(odd), .artifact-page .meta-grid > div:nth-child(odd) { border-left: 0; }
}

/* Evidence review, 2026-09-28 */
.image-viewer-open { overflow: hidden; }
.image-viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 70px 24px 24px; box-sizing: border-box; border: 0; background: transparent; color: #fff; }
.image-viewer[open] { display: flex; flex-direction: column; }
.image-viewer::backdrop { background: rgba(5, 15, 30, .88); }
.image-viewer figure { margin: 0; max-width: 100%; text-align: center; }
.image-viewer-stage { display: grid; place-items: center; flex: 1; min-height: 0; width: 100%; overflow: auto; }
.image-viewer img { display: block; max-width: 100%; max-height: calc(100dvh - 160px); width: auto; height: auto; margin: auto; object-fit: contain; }
.image-viewer figcaption { margin-top: 12px; font-size: 14px; line-height: 1.6; }
.image-viewer-controls { position: absolute; top: 16px; right: 20px; display: flex; gap: 8px; }
.image-viewer-controls button { padding: 10px 14px; border: 1px solid #fff; border-radius: 8px; background: #fff; color: #122033; font: inherit; cursor: pointer; }
.image-viewer-controls button:focus-visible { outline: 3px solid #83b8ff; outline-offset: 4px; }
.image-viewer-zoomed .image-viewer-stage { display: block; }
.image-viewer-zoomed figure { width: max-content; max-width: none; margin: 0 auto; }
.image-viewer-zoomed img { max-width: none; max-height: none; }
.image-viewer-zoomed figcaption { max-width: calc(100vw - 64px); text-align: left; }
.hero { padding: 48px 0 36px; }
.project-preview { margin: 0 30px 20px; padding: 14px; background: #f6f8fa; border: 1px solid var(--line); border-radius: 10px; }
.project-preview img { display: block; width: 100%; height: auto; object-fit: contain; }
.project-preview a { display: block; cursor: zoom-in; }
.project-preview figcaption::after { content: ' · 클릭하여 확대 · 원본 크기 보기'; display: block; margin-top: 4px; color: var(--blue); font-weight: 600; }
.project-preview figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }
.project-focus { padding-top: 16px; }
.role-panel, .trouble-panel { padding: 18px; }
.role-tasks, .trouble-steps { gap: 14px; }
.team-case { margin-top: 32px; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.team-case .focus-link + .focus-link { margin-left: 24px; }
.team-case .results-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.team-case h3 { font-size: 24px; color: var(--navy); }
code, pre, .table-wrap { font-variant-ligatures: none; }
details { margin: 18px 0; }
summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.status-fail { color: #9b2727; background: #fff0ed; }
@media(max-width:600px) {
  .project-preview { margin: 0 16px 16px; }
  .team-case { padding: 20px 16px; }
  .team-case .results-grid { grid-template-columns: 1fr; }
  .team-case .focus-link + .focus-link { margin-left: 0; display: block; }
}
@media print {
  .site-header, .section-rail, .hero-actions, .site-footer { display: none !important; }
  .hero { padding: 12px 0; color: #172033; background: #fff; }
  .hero h1 span, .hero-copy, .hero-copy strong { color: #172033; }
  .section { padding: 20px 0; }
  .project-card, .team-case { break-inside: auto; }
  .result-card, .project-preview { break-inside: avoid; }
}
