:root {
  --ink: #171717;
  --muted: #666666;
  --line: #e5e5e5;
  --wash: #f2f2f2;
  --paper: #ffffff;
  --focus: #0068d6;
  --ok-bg: #eef6ee;
  --ok-ink: #1b5e20;
  --wait-bg: #f4f1e8;
  --wait-ink: #6b5a1a;
  --space: 12px;
  --max: 880px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font: 14px/1.45 system-ui, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--focus);
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 16px 12px 48px;
}

.mast {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 8px;
}

.kicker,
.stamp {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

h1 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 16px;
  color: var(--ink);
}

.counts,
.lists,
.nav,
.shots,
.comp {
  min-width: 0;
}

.counts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.counts li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--wash);
}

.counts strong {
  font-variant-numeric: tabular-nums;
}

.lists {
  display: grid;
  gap: 12px;
  margin: 0 0 8px;
}

.lists h2 {
  margin: 0 0 6px;
  font-size: 14px;
}

.lists h2:not(:first-child) {
  margin-top: 12px;
}

.lists ul {
  margin: 0;
  padding-left: 1.15em;
}

.lists li + li {
  margin-top: 4px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 4px;
  margin: 16px -12px 20px;
  padding: 8px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.nav a {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  background: var(--paper);
}

.nav a:hover,
.nav a:focus-visible {
  border-color: var(--focus);
}

.group {
  margin: 0 0 28px;
  min-width: 0;
}

.group > h2 {
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.comp {
  margin: 0 0 20px;
}

.comp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

.comp-head h3 {
  margin: 0;
  font-size: 14px;
}

.bullets {
  margin: 0 0 10px;
  padding-left: 1.15em;
  color: var(--muted);
  font-size: 13px;
}

.bullets li + li {
  margin-top: 2px;
}

.badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  line-height: 1.6;
  white-space: nowrap;
}

.badge-verified {
  color: var(--ok-ink);
  background: var(--ok-bg);
}

.badge-pending {
  color: var(--wait-ink);
  background: var(--wait-bg);
}

.tag {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.shot {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  text-align: left;
  cursor: zoom-in;
}

.shot:hover {
  border-color: #c8c8c8;
}

.shot-frame {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}

.shot-frame img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  object-position: top center;
  background: var(--paper);
}

.shot-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
}

.shot-meta h4 {
  flex: 1 1 140px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.foot {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.foot p {
  margin: 0 0 8px;
}

dialog {
  width: min(100%, 960px);
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

dialog::backdrop {
  background: rgba(23, 23, 23, 0.45);
}

.viewer-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.viewer-bar h2 {
  flex: 1 1 160px;
  margin: 0;
  font-size: 14px;
}

.viewer-bar a,
.viewer-bar button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.viewer-bar button {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

#viewer-img {
  width: 100%;
  max-height: calc(100vh - 88px);
  object-fit: contain;
  background: var(--wash);
}

.err {
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--wait-bg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (min-width: 720px) {
  .wrap {
    padding: 24px 16px 64px;
  }

  .counts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lists {
    grid-template-columns: 1fr 1fr;
  }

  .shots {
    grid-template-columns: 1fr 1fr;
  }

  .shot[data-width="wide"] {
    grid-column: 1 / -1;
  }

  .shot[data-width="wide"] .shot-frame img {
    max-height: 560px;
  }

  .nav {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

.review-details { margin: 0 0 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.review-details summary { cursor: pointer; color: var(--muted); padding: 4px 0; }
.review-details[open] summary { margin-bottom: 12px; }
