/* 중앙병역판정검사소 홍보영상 기획안 — white government deck */

:root {
  --ink: #1a1d21;
  --mute: #5c6570;
  --line: #d9dee5;
  --paper: #ffffff;
  --soft: #f4f6f8;
  --navy: #1e3a5f;
  --navy-deep: #142942;
  --accent: #2f5f8a;
  --font-ko: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-en: "SUIT Variable", SUIT, Pretendard, sans-serif;
  --slide-w: 1440px;
  --slide-h: 810px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 40px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #e8ecf0;
  color: var(--ink);
  font-family: var(--font-ko);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.deck-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.deck-bar .left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.deck-bar .mark {
  width: 10px;
  height: 10px;
  background: var(--navy);
  flex: 0 0 auto;
}

.deck-bar .title {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-bar .tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.deck-bar .tools a,
.deck-bar .tools button {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  cursor: pointer;
}

.deck-bar .tools a:hover,
.deck-bar .tools button:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.deck {
  width: min(100%, var(--slide-w));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.slide {
  position: relative;
  width: 100%;
  min-height: var(--slide-h);
  background: var(--paper);
  border: 1px solid var(--line);
  margin: 0 0 18px;
  padding: 42px 56px 56px;
  display: flex;
  flex-direction: column;
  page-break-after: always;
  break-after: page;
}

.slide.is-cover {
  background: var(--paper);
  justify-content: space-between;
  padding: 48px 56px 56px;
}

.cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cover-kicker {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.cover-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  max-width: 920px;
}

.cover-title {
  margin: 0;
  font-size: 48px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
}

.cover-title span {
  color: var(--accent);
}

.cover-sub {
  margin: 0;
  font-size: var(--text-xl);
  color: var(--mute);
  line-height: 1.5;
}

.cover-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.cover-meta div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.cover-meta strong {
  display: block;
  font-size: var(--text-xs);
  color: var(--mute);
  font-weight: 500;
  margin-bottom: 4px;
}

.cover-meta span {
  font-size: var(--text-md);
  color: var(--ink);
}

.foot {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 22px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.foot .n {
  color: var(--navy);
  font-weight: 700;
}

.foot-ohola {
  height: 14px;
  width: auto;
  opacity: 0.85;
}

.slide h2 {
  margin: 0 0 8px;
  font-size: var(--text-3xl);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  font-weight: 700;
}

.slide .lead {
  margin: 0 0 28px;
  font-size: var(--text-lg);
  color: var(--mute);
  line-height: 1.55;
  max-width: 880px;
}

#toc {
  justify-content: center;
}

#toc h2 {
  margin-bottom: 28px;
}

.toc {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
  row-gap: 0;
  align-content: center;
}

.toc li {
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: 16px;
  align-items: center;
  min-height: 64px;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.toc .num {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.toc strong {
  display: block;
  font-size: var(--text-lg);
  font-weight: 650;
  color: var(--ink);
  line-height: 1.35;
}

.toc span {
  display: block;
  margin-top: 4px;
  font-size: var(--text-sm);
  color: var(--mute);
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.brief-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brief-card {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 18px 18px 16px;
}

.brief-card .meta {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.brief-card strong {
  display: block;
  font-size: var(--text-lg);
  margin-bottom: 8px;
  line-height: 1.4;
}

.brief-card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--mute);
  line-height: 1.55;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.flow-steps li {
  list-style: none;
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 16px 14px;
  min-height: 110px;
}

.flow-steps .meta {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.flow-steps strong {
  display: block;
  font-size: var(--text-md);
  line-height: 1.4;
}

.tone-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  margin-top: 8px;
}

.tone-box {
  border: 1px solid var(--line);
  padding: 20px;
  background: #fff;
}

.tone-box h3 {
  margin: 0 0 12px;
  font-size: var(--text-lg);
  color: var(--navy);
}

.tone-box ul {
  margin: 0;
  padding-left: 18px;
}

.tone-box li {
  margin: 0 0 8px;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--ink);
}

/* Continuity scene slide — NOT competitor 4-col table */
.scene-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.scene-head .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.scene-head h2 {
  margin: 0;
  font-size: 30px;
}

.scene-head .dur {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--mute);
  white-space: nowrap;
}

.scene-summary {
  margin: 0 0 16px;
  font-size: var(--text-md);
  color: var(--mute);
  line-height: 1.55;
  max-width: 980px;
}

.filmstrip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.filmstrip.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.frame {
  border: 1px solid var(--line);
  background: #111;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
}

.scene-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 16px;
  flex: 1;
}

.panel {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 16px 18px;
  min-height: 180px;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--navy);
  font-weight: 700;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
}

.panel li {
  margin: 0 0 8px;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.panel .nar {
  margin: 0;
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--ink);
  word-break: keep-all;
}

.panel .nar + .nar {
  margin-top: 12px;
}

.note-line {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--mute);
}

.shoot-need {
  display: inline-block;
  margin: 8px 0 0;
  padding: 3px 8px;
  border: 1px solid #b42318;
  color: #b42318;
  font-size: 12px;
  font-weight: 650;
}

.ws-schedule {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: center;
  min-height: 0;
}

.ws-cal-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: min(980px, 100%);
}

.ws-cal-title {
  margin: 0 0 10px;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--navy-deep);
  text-align: center;
}

.ws-cal-head,
.ws-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.ws-cal-head span {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--mute);
  padding-bottom: 4px;
}

.ws-cal-grid span {
  aspect-ratio: 1.15;
  min-height: 40px;
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  border-radius: 4px;
  background: var(--soft);
}

.ws-cal-grid span.empty {
  background: transparent;
}

.ws-cal-grid span.is-weekend {
  color: var(--mute);
  background: #f7f8fa;
}

.ws-cal-grid span.is-plan {
  background: #d9e6f2;
  box-shadow: inset 0 0 0 1.5px #8fa9c4;
}

.ws-cal-grid span.is-prod {
  background: #e4ebe4;
  box-shadow: inset 0 0 0 1.5px #97ad97;
}

.ws-cal-grid span.is-edit {
  background: #ebe4d8;
  box-shadow: inset 0 0 0 1.5px #b7a78e;
}

.ws-cal-grid span.is-draft {
  background: #2f5f8a;
  color: #fff;
}

.ws-cal-grid span.is-due {
  background: var(--navy);
  color: #fff;
}

.ws-cal-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

.ws-cal-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  word-break: keep-all;
}

.ws-cal-legend .swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: 0 0 auto;
}

.ws-cal-legend .swatch.is-plan {
  background: #d9e6f2;
  box-shadow: inset 0 0 0 1.5px #8fa9c4;
}

.ws-cal-legend .swatch.is-prod {
  background: #e4ebe4;
  box-shadow: inset 0 0 0 1.5px #97ad97;
}

.ws-cal-legend .swatch.is-edit {
  background: #ebe4d8;
  box-shadow: inset 0 0 0 1.5px #b7a78e;
}

.ws-cal-legend .swatch.is-draft {
  background: #2f5f8a;
}

.ws-cal-legend .swatch.is-due {
  background: var(--navy);
}

.ws-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(980px, 100%);
}

.ws-timeline > div {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 12px 14px;
}

.ws-timeline .meta {
  margin: 0 0 6px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.ws-timeline-body {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--ink);
  word-break: keep-all;
}

/* Scenario script */
.script-block {
  display: grid;
  gap: 12px;
}

.script-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.script-item:last-child {
  border-bottom: none;
}

.script-item .meta {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-weight: 700;
  line-height: 1.4;
}

.script-item .meta strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-ko);
  font-size: 14px;
  color: var(--navy-deep);
  letter-spacing: 0;
}

.script-item .body {
  margin: 0;
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--ink);
  word-break: keep-all;
}

/* Continuity timeline table */
.conti-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.conti-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.conti-table th,
.conti-table td {
  border: 1px solid var(--line);
  vertical-align: top;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  word-break: keep-all;
}

.conti-table th {
  background: var(--soft);
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  font-weight: 700;
}

.conti-table .col-time {
  width: 9%;
  text-align: center;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.conti-table .col-sec {
  width: 11%;
  text-align: center;
  font-weight: 700;
  color: var(--navy-deep);
}

.conti-table .col-vis {
  width: 28%;
}

.conti-table .col-shot {
  width: 18%;
  padding: 8px;
}

.conti-table .col-nar {
  width: 34%;
}

.conti-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  background: #111;
}

.conti-table .shot-cap {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--mute);
  text-align: center;
}

.conti-table ul {
  margin: 0;
  padding-left: 16px;
}

.conti-table li {
  margin: 0 0 4px;
}

.conti-table .nar {
  margin: 0;
  line-height: 1.55;
}

.conti-table .nar + .nar {
  margin-top: 8px;
}

.conti-table tr.sec-head td {
  background: #eef3f8;
  font-weight: 700;
  color: var(--navy-deep);
  padding: 8px 12px;
}

@media print {
  body {
    background: #fff;
  }

  .deck-bar {
    display: none !important;
  }

  .deck {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .slide {
    border: none;
    margin: 0;
    width: 1440px;
    height: 810px;
    min-height: 810px;
    overflow: hidden;
  }
}

@page {
  size: 1440px 810px;
  margin: 0;
}
