/* ───── 그로스하이 표준형 검토서 — 공통 스타일 ───── */

:root {
  --bg: #FFFFFF;
  --surface: #FAFAF7;
  --surface-alt: #F4F2EC;
  --ink: #0A0A0A;
  --ink-muted: #4A4A4A;
  --ink-subtle: #8A8A8A;
  --line: #E8E6DD;
  --line-strong: #C9C5B4;

  --brand: #0A1828;
  --brand-soft: #E5E8ED;

  --urgent: #C73E2C;
  --urgent-soft: #FBEAE7;
  --warning: #A8771E;
  --warning-soft: #FAF3E0;
  --success: #2E6B4F;
  --success-soft: #E5F0EA;
  --info-soft: #EEF2F7;
  --closed: #6B6B6B;
  --closed-soft: #EEEEEC;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

.doc {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

/* ─── Brand Header ─── */
.brand-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 56px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.logo-symbol {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.logo-text { display: inline-block; }

.logo .apostrophe { color: var(--urgent); font-weight: 800; }

.logo .tagline {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-top: 4px;
}

.doc-meta {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-subtle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
}

.doc-meta strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}

/* ─── Title ─── */
.title-block { margin-bottom: 40px; }

.label-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.label-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 11px;
  border-radius: 2px;
}

.label-tag.alt { background: var(--surface-alt); color: var(--ink-muted); }

.doc-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
  color: var(--ink);
}

.doc-subtitle {
  font-size: 14px;
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* ─── D-day Strip (status colors) ─── */
.dday-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  margin-bottom: 64px;
  border-left: 4px solid;
}

.dday-strip.urgent { background: var(--urgent-soft); border-left-color: var(--urgent); }
.dday-strip.warning { background: var(--warning-soft); border-left-color: var(--warning); }
.dday-strip.closed { background: var(--closed-soft); border-left-color: var(--closed); }

.dday-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  position: relative;
  padding-left: 18px;
}

.dday-strip.urgent .dday-badge { color: var(--urgent); }
.dday-strip.warning .dday-badge { color: var(--warning); }
.dday-strip.closed .dday-badge { color: var(--closed); }

.dday-badge::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dday-strip.urgent .dday-badge::before { background: var(--urgent); animation: pulse 2s infinite; }
.dday-strip.warning .dday-badge::before { background: var(--warning); animation: pulse 2.5s infinite; }
.dday-strip.closed .dday-badge::before { background: var(--closed); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
  50% { opacity: 0.4; transform: translateY(-50%) scale(1.5); }
}

.dday-text {
  font-size: 14px;
  color: var(--ink);
  flex: 1;
  line-height: 1.5;
}

.dday-text strong { font-weight: 700; }

/* ─── Section ─── */
section { margin-bottom: 64px; }

.section-header {
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}

.section-en {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-subtle);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.section-en .num { color: var(--urgent); margin-right: 6px; }

.section-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ─── A. Meta Grid ─── */
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 18px;
}

.meta-cell {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-cell:nth-child(2n) { border-right: none; }
.meta-cell:nth-last-child(-n+2) { border-bottom: none; }

.meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 6px;
}

.meta-value {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.source-link {
  font-size: 13px;
  color: var(--ink-muted);
  padding: 4px 0;
}

.source-link a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid var(--brand-soft);
  transition: border-color 0.2s;
  font-weight: 500;
}

.source-link a:hover { border-bottom-color: var(--brand); }

/* ─── B. Core Cards ─── */
.core-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

.core-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all 0.25s ease;
  position: relative;
}

.core-card:hover { transform: translateY(-2px); border-color: var(--ink); }

.core-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

.card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-subtle);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.card-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.card-headline {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--ink);
  letter-spacing: -0.025em;
}

.card-body {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.65;
  letter-spacing: -0.005em;
}

/* ─── Tables ─── */
.table-block { margin-bottom: 36px; }

.block-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.block-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.block-en {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-subtle);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

table.tracks {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 13px;
}

table.tracks thead { background: var(--surface); }

table.tracks th {
  text-align: left;
  padding: 13px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}

table.tracks td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}

table.tracks tr:last-child td { border-bottom: none; }
table.tracks tr:hover td { background: var(--surface); }

table.tracks .track-name { font-weight: 700; }

.new-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--warning);
  background: var(--warning-soft);
  padding: 2px 6px;
  margin-left: 6px;
  letter-spacing: 0.08em;
  vertical-align: 1px;
}

/* ─── Highlight Boxes ─── */
.highlight-box {
  padding: 22px 26px;
  border-left: 3px solid;
  margin-bottom: 14px;
}

.highlight-box.warning { background: var(--warning-soft); border-left-color: var(--warning); }
.highlight-box.urgent { background: var(--urgent-soft); border-left-color: var(--urgent); }
.highlight-box.success { background: var(--success-soft); border-left-color: var(--success); }
.highlight-box.info { background: var(--info-soft); border-left-color: var(--brand); }

.highlight-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.highlight-box.warning .highlight-title { color: var(--warning); }
.highlight-box.urgent .highlight-title { color: var(--urgent); }
.highlight-box.success .highlight-title { color: var(--success); }
.highlight-box.info .highlight-title { color: var(--brand); }

.highlight-en {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: 8px;
}

.highlight-box.warning .highlight-en { color: var(--warning); }
.highlight-box.urgent .highlight-en { color: var(--urgent); }
.highlight-box.success .highlight-en { color: var(--success); }

.highlight-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.highlight-list li {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
}

.highlight-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 1px;
}

.highlight-box.warning .highlight-list li::before { background: var(--warning); }
.highlight-box.urgent .highlight-list li::before { background: var(--urgent); }
.highlight-box.success .highlight-list li::before { background: var(--success); }
.highlight-box.info .highlight-list li::before { background: var(--brand); }

.highlight-list li strong { font-weight: 700; }

/* ─── C. Checklist ─── */
.checklist-group {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 22px 26px;
  margin-bottom: 14px;
}

.group-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.checklist {
  list-style: none;
  display: grid;
  gap: 10px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

.check {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--line-strong);
  flex-shrink: 0;
  margin-top: 4px;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--bg);
}

.check:hover { border-color: var(--ink); }

.check.checked {
  background: var(--ink);
  border-color: var(--ink);
  position: relative;
}

.check.checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checklist li.bonus { color: var(--brand); font-weight: 500; }

.new-inline {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--warning);
  background: var(--warning-soft);
  padding: 2px 6px;
  margin-left: 6px;
  letter-spacing: 0.08em;
  vertical-align: 1px;
}

/* ─── PDF Link ─── */
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--brand);
  text-decoration: none;
  margin: 18px 0;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--brand-soft);
  font-weight: 500;
  transition: border-color 0.2s;
}

.pdf-link:hover { border-bottom-color: var(--brand); }

/* ─── Details ─── */
details.more {
  background: var(--surface);
  margin-top: 18px;
  border: 1px solid var(--line);
}

details.more summary {
  padding: 16px 22px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
  letter-spacing: -0.005em;
}

details.more summary::-webkit-details-marker { display: none; }

details.more summary::before {
  content: '+';
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-subtle);
  transition: all 0.2s;
  display: inline-block;
  width: 16px;
  line-height: 1;
}

details.more[open] summary::before { content: '−'; color: var(--ink); }

details.more .more-content {
  padding: 8px 22px 22px;
  border-top: 1px solid var(--line);
}

details.more h4 {
  font-size: 13px;
  font-weight: 700;
  margin: 18px 0 10px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

details.more h4:first-child { margin-top: 8px; }

details.more h4 .en {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  color: var(--ink-subtle);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 8px;
}

details.more ul { list-style: none; padding-left: 0; }

details.more ul li {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.7;
  padding-left: 14px;
  position: relative;
}

details.more ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--ink-subtle);
}

details.more p {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin: 6px 0;
}

/* ─── Footer ─── */
.doc-footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.footer-brand .apostrophe { color: var(--urgent); }

.footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-subtle);
  letter-spacing: 0.06em;
  text-align: right;
}

/* ─── Mobile ─── */
@media (max-width: 720px) {
  .doc { padding: 32px 20px 60px; }
  .doc-title { font-size: 28px; }
  .meta-grid { grid-template-columns: 1fr; }
  .meta-cell { border-right: none; }
  .meta-cell:not(:last-child) { border-bottom: 1px solid var(--line); }
  .core-cards { grid-template-columns: 1fr; }
  table.tracks { font-size: 12px; }
  table.tracks th, table.tracks td { padding: 10px 12px; }
  .brand-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .doc-meta { text-align: left; }
}

/* ─── Print ─── */
@media print {
  body { background: white; }
  .doc { padding: 0; max-width: 100%; }
  .core-card:hover { transform: none; }
  .dday-badge::before { animation: none; }
  details.more[open] summary { display: none; }
  details.more .more-content { padding: 0; border: none; }
}

/* ===== GROWTH'HIGH 플로팅 버튼 ===== */
.gh-fab { position: fixed; right: 24px; bottom: 24px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.gh-fab-menu { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; opacity: 0; transform: translateY(12px) scale(0.96); pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
.gh-fab.open .gh-fab-menu { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.gh-fab-item { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; background: #FFFFFF; border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: 0 4px 16px rgba(10,24,40,0.13); text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--brand); white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.gh-fab-item:hover { transform: translateX(-3px); box-shadow: 0 6px 20px rgba(10,24,40,0.2); }
.gh-fab-ico { font-size: 16px; line-height: 1; }
.gh-fab-cta { background: var(--urgent); color: #FFFFFF; border-color: var(--urgent); }
.gh-fab-cta:hover { background: #B33523; }
.gh-fab-toggle { position: relative; width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer; background: var(--brand); color: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 22px rgba(10,24,40,0.32); font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; transition: transform .18s ease, background .18s ease; }
.gh-fab-toggle:hover { transform: scale(1.06); }
.gh-fab.open .gh-fab-toggle { background: var(--ink); }
.gh-fab-toggle svg { margin: 0 auto; }
.gh-fab-toggle .gh-fab-toggle-open { display: block; }
.gh-fab-toggle .gh-fab-toggle-close { display: none; }
.gh-fab.open .gh-fab-toggle .gh-fab-toggle-open { display: none; }
.gh-fab.open .gh-fab-toggle .gh-fab-toggle-close { display: block; }
@media print { .gh-fab { display: none !important; } }
@media (max-width: 480px) {
  .gh-fab { right: 16px; bottom: 16px; }
  .gh-fab-toggle { width: 54px; height: 54px; font-size: 13px; }
  .gh-fab-item { padding: 10px 14px; font-size: 13px; }
}
