:root {
  --ink: #172033;
  --muted: #667085;
  --line: #d9e1ea;
  --paper: #ffffff;
  --panel: #f6f8fb;
  --teal: #0f766e;
  --blue: #2563eb;
  --amber: #b45309;
  --red: #b42318;
  --green: #237a4b;
  --violet: #6d4aff;
  --shadow: 0 14px 38px rgba(23, 32, 51, 0.12);
  --radius: 8px;
  font-family: "Pretendard", "Noto Sans KR", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #eef2f6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(217, 225, 234, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.nav-link,
.filter-button,
.submit-button,
.copy-button,
.complaint-link {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-link {
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
}

.nav-link.is-active,
.nav-link:hover {
  background: var(--ink);
  color: #fff;
}

.submit-button {
  padding: 0 16px;
  background: var(--teal);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 16, 31, 0.92) 0%, rgba(8, 16, 31, 0.7) 34%, rgba(8, 16, 31, 0.28) 62%, rgba(8, 16, 31, 0.18) 100%),
    url("assets/gangseo-hero.png") center / cover no-repeat;
}

.hero-overlay {
  position: relative;
  display: grid;
  min-height: 520px;
  grid-template-columns: minmax(280px, 560px) minmax(360px, 1fr);
  gap: 36px;
  align-items: end;
  padding: 86px 28px 30px;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-copy {
  padding-bottom: 62px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #74d4c9;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.05;
}

.hero-copy p:last-child {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.65;
}

.hero-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
}

.hero-board div {
  min-height: 108px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.board-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hero-board strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 24px;
}

.workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 0 28px 36px;
}

.side-rail {
  position: sticky;
  top: 84px;
  align-self: start;
  display: grid;
  gap: 10px;
  z-index: 2;
}

.rail-block {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.06);
}

.rail-kicker {
  display: block;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.rail-block strong {
  display: block;
  margin-top: 6px;
}

.rail-block small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.content-area {
  min-width: 0;
}

.page-section,
.timeline-shell,
.timeline-table,
.gantt,
.gantt-body {
  max-width: 100%;
  min-width: 0;
}

.page-section {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.page-section.is-active {
  display: block;
}

.section-head {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.section-note {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.promise-grid,
.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.promise-card,
.issue-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.promise-card {
  display: grid;
  min-height: 318px;
  grid-template-rows: auto 1fr auto;
}

.promise-overview {
  grid-column: 1 / -1;
  min-height: auto;
}

.promise-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 4px;
}

.promise-overview-grid div {
  padding: 14px;
  border-radius: 7px;
  background: var(--panel);
}

.promise-overview-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.promise-overview-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.promise-top,
.issue-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
}

.role-tag,
.status-pill,
.category-pill,
.priority-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.role-tag {
  background: #eef6ff;
  color: #164b8f;
}

.status-pill {
  background: #edf7f3;
  color: var(--green);
}

.status-pill.warn {
  background: #fff4df;
  color: var(--amber);
}

.status-pill.stop {
  background: #fff0ee;
  color: var(--red);
}

.promise-title,
.issue-title {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.35;
}

.promise-meta,
.issue-meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.promise-card ul,
.promise-card ol,
.watch-panel ul {
  margin: 0;
  padding: 0 16px 0 34px;
}

.promise-card li,
.watch-panel li {
  margin: 9px 0;
  color: #344054;
  line-height: 1.45;
}

.promise-checklist {
  max-height: 360px;
  overflow: auto;
  padding-right: 14px;
}

.promise-checklist li::marker {
  color: var(--teal);
  font-weight: 900;
}

.progress-wrap {
  padding: 14px 16px 16px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.progress-bar {
  height: 9px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf4;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.progress-bar.unknown span {
  width: 100% !important;
  background: repeating-linear-gradient(90deg, #cbd5e1 0, #cbd5e1 8px, #e8edf4 8px, #e8edf4 16px);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 26px 0;
}

.filter-button {
  padding: 0 14px;
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
}

.filter-button.is-active,
.filter-button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.timeline-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 20px 26px 28px;
}

.timeline-table[hidden] {
  display: none;
}

.timeline-table {
  width: 100%;
  overflow-x: auto;
}

.timeline-summary {
  display: grid;
  gap: 12px;
  align-self: start;
}

.summary-item {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.summary-item strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  display: none;
  content: none;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.date-badge {
  display: none;
  width: 96px;
  min-height: 96px;
  align-content: center;
  justify-items: center;
  border: 2px solid #fff;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 22px rgba(23, 32, 51, 0.18);
}

.weekday {
  font-size: 13px;
  font-weight: 800;
}

.date-num {
  margin-top: 4px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.date-month {
  margin-top: 5px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.76);
}

.timeline-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.timeline-card.is-warning {
  border-color: #f5b5ad;
  background: #fffafa;
}

.timeline-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.timeline-card h3 {
  margin: 7px 0 0;
  font-size: 18px;
  line-height: 1.35;
}

.timeline-card p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.benefit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.benefit-group,
.rating-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.benefit-group {
  background: #edf7f3;
  color: var(--green);
}

.rating-pill {
  background: #fff4df;
  color: var(--amber);
}

.duration-progress {
  padding-top: 0;
  padding-bottom: 0;
}

.duration-bar span {
  background: linear-gradient(90deg, #b45309, #f59e0b);
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.fact-chip,
.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.fact-chip {
  background: var(--panel);
  color: #344054;
}

.source-link {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  text-decoration: none;
}

.source-link:hover {
  border-color: var(--blue);
}

.gantt {
  max-width: none;
  overflow: hidden;
  width: var(--gantt-min-width, 1120px);
  min-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.gantt-head {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.gantt-head h3 {
  margin: 0;
  font-size: 20px;
}

.gantt-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.gantt-body {
  overflow-x: visible;
  width: auto;
  padding: 14px 16px 18px;
}

.gantt-scale,
.gantt-row {
  display: grid;
  grid-template-columns: 220px var(--timeline-width, 860px);
  gap: 14px;
  min-width: var(--gantt-min-width, 1120px);
}

.gantt-scale {
  align-items: end;
  margin-bottom: 8px;
}

.gantt-name-space {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.gantt-years {
  display: grid;
  grid-template-columns: repeat(var(--year-count, 12), minmax(54px, 1fr));
  min-height: 32px;
  background: repeating-linear-gradient(
    90deg,
    #f3f5f8 0,
    #f3f5f8 54px,
    #ffffff 54px,
    #ffffff 108px
  );
}

.gantt-years span {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.gantt-row {
  align-items: center;
  min-height: 44px;
  border-top: 1px solid #e7edf5;
}

.gantt-name {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 0;
}

.gantt-name span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.gantt-name strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-track {
  position: relative;
  min-height: 44px;
  background: repeating-linear-gradient(
    90deg,
    #f4f6f9 0,
    #f4f6f9 54px,
    #ffffff 54px,
    #ffffff 108px
  );
}

.gantt-bar {
  position: absolute;
  top: 9px;
  left: var(--bar-left);
  display: flex;
  width: var(--bar-width);
  min-width: 0;
  height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  overflow: hidden;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-bar.is-unknown {
  background: #667085;
}

.gantt-bar.is-warning {
  background: var(--red);
}

.category-pill {
  flex: 0 0 auto;
  background: #eef7f5;
  color: var(--teal);
}

.category-pill.transport {
  background: #eef6ff;
  color: #164b8f;
}

.category-pill.commerce {
  background: #fff5eb;
  color: var(--amber);
}

.category-pill.medical {
  background: #fff0ee;
  color: var(--red);
}

.category-pill.housing {
  background: #f1efff;
  color: var(--violet);
}

.category-pill.rail {
  background: #f1efff;
  color: var(--violet);
}

.category-pill.airport {
  background: #e8f7ff;
  color: #0369a1;
}

.category-pill.industry {
  background: #edf7f3;
  color: var(--green);
}

.category-pill.life {
  background: #fff5eb;
  color: var(--amber);
}

.category-pill.environment {
  background: #fff0ee;
  color: var(--red);
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 180px;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.timeline > .empty-state {
  list-style: none;
}

.empty-state strong {
  display: block;
  font-size: 18px;
}

.empty-state p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.stage-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.stage {
  min-height: 32px;
  padding: 8px 6px;
  border-radius: 6px;
  background: #edf1f6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.stage.done {
  background: #e5f5ef;
  color: var(--green);
}

.stage.now {
  background: #fff0d5;
  color: var(--amber);
}

.watch-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.watch-panel h3 {
  margin: 0 0 12px;
}

.watch-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.issue-card {
  display: grid;
  gap: 6px;
  padding-bottom: 16px;
}

.priority-pill {
  background: #fff0ee;
  color: var(--red);
}

.issue-body {
  padding: 0 16px;
}

.issue-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.issue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px 0;
}

.copy-button,
.complaint-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 0 12px;
  text-decoration: none;
}

.copy-button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.complaint-link {
  background: var(--red);
  color: #fff;
}

.site-footer {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 26px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer strong {
  color: var(--ink);
}

.report-modal[hidden] {
  display: none;
}

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.report-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 32, 51, 0.54);
}

.report-dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.report-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.report-dialog h2 {
  margin: 0;
  font-size: 26px;
}

.report-desc {
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.email-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .main-nav {
    overflow-x: auto;
  }

  .nav-link {
    flex: 0 0 auto;
  }

  .submit-button {
    justify-self: start;
  }

  .hero-overlay {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .side-rail {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .timeline-shell {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    padding: 12px 16px;
  }

  .hero,
  .hero-overlay {
    min-height: 620px;
  }

  .hero-overlay {
    padding: 84px 16px 24px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy p:last-child {
    font-size: 16px;
  }

  .workspace {
    margin-top: 0;
    padding: 16px 16px 28px;
  }

  .side-rail,
  .promise-grid,
  .issue-grid,
  .timeline-summary {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
    padding: 20px;
  }

  .section-note {
    margin-top: 10px;
  }

  .promise-grid,
  .issue-grid {
    padding: 12px;
  }

  .promise-overview-grid {
    grid-template-columns: 1fr;
  }

  .promise-checklist {
    max-height: none;
  }

  .gantt-head {
    display: block;
  }

  .gantt-head p {
    margin-top: 8px;
  }

  .gantt-scale,
  .gantt-row {
    grid-template-columns: 170px var(--timeline-width, 860px);
  }

  .gantt-name strong {
    white-space: normal;
  }

  .timeline-shell {
    padding: 16px;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 47px;
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .date-badge {
    display: none;
  }

  .stage-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    display: block;
    text-align: center;
  }

  .site-footer span {
    display: block;
    margin-top: 6px;
  }
}
