/* PostureVision Docs — shared brand-styled CSS */
:root {
  --cream: #FBF9F4;
  --sand: #E8DEC8;
  --teal: #0F4A45;
  --teal-bright: #1B7E76;
  --sage: #A8C0B5;
  --gold: #D4A748;
  --gold-soft: #FFD584;
  --coral: #E8553D;
  --ember: #FF6B35;
  --ink: #14201E;
  --soft: #4A5856;
  --faint: #8C9694;
  --line: #E8E2D5;
  --emerald: #5E9F6D;
  --amber: #E89C3D;
  --border: #E5E0D2;
  --bg-card: #ffffff;
  --code-bg: #1F2937;
  --code-fg: #F0E6C8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 120px;
}

.header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.crumb {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 8px;
}
.crumb a {
  color: var(--faint);
  text-decoration: none;
  transition: color 0.15s;
}
.crumb a:hover { color: var(--teal); }

h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1.15;
  margin: 8px 0 16px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.25;
  margin: 48px 0 16px;
  color: var(--teal);
  letter-spacing: -0.01em;
  padding-top: 8px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--ink);
}

h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  color: var(--faint);
}

p { margin: 0 0 16px; }

a {
  color: var(--teal-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(27, 126, 118, 0.25);
  transition: border-color 0.15s;
}
a:hover { border-bottom-color: var(--teal-bright); }

ul, ol { padding-left: 24px; margin: 12px 0 20px; }
li { margin-bottom: 8px; }

strong { color: var(--ink); font-weight: 600; }
em { color: var(--soft); }

code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  background: var(--sand);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink);
}
pre {
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 16px 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
  margin: 16px 0 24px;
}
pre code { background: transparent; color: inherit; padding: 0; }

blockquote {
  border-left: 4px solid var(--gold);
  margin: 16px 0;
  padding: 4px 16px 4px 20px;
  background: var(--sand);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
th {
  background: var(--teal);
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tr:nth-child(even) td { background: rgba(232, 222, 200, 0.25); }

hr {
  border: none;
  border-bottom: 1px solid var(--line);
  margin: 32px 0;
}

.meta {
  font-size: 14px;
  color: var(--faint);
  margin-bottom: 24px;
}
.meta strong { color: var(--soft); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0;
  box-shadow: 0 2px 12px -6px rgba(20, 32, 30, 0.08);
}

.card-teal {
  background: var(--teal);
  color: white;
  border: none;
}
.card-teal h2, .card-teal h3 { color: var(--gold-soft); }

.card-gold {
  background: linear-gradient(135deg, rgba(212, 167, 72, 0.08) 0%, rgba(255, 213, 132, 0.08) 100%);
  border: 1px solid rgba(212, 167, 72, 0.3);
}

.pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--sand);
  color: var(--teal);
  margin-right: 6px;
}
.pill-gold { background: var(--gold); color: white; }
.pill-teal { background: var(--teal); color: white; }
.pill-coral { background: var(--coral); color: white; }

/* Hub-specific */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  color: var(--ink);
  display: block;
}
.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(20, 32, 30, 0.15);
  border-color: var(--gold);
  border-bottom: 1px solid var(--gold);
}
.doc-card .doc-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}
.doc-card .doc-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--teal);
}
.doc-card .doc-desc {
  font-size: 13.5px;
  color: var(--soft);
  line-height: 1.45;
}

/* Interactive checkboxes (video plan) */
.task {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
  background: var(--bg-card);
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
}
.task:hover { background: rgba(232, 222, 200, 0.3); border-color: var(--sand); }
.task input[type="checkbox"] {
  flex-shrink: 0;
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  margin-top: 2px;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}
.task input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.task input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: -2px;
  left: 4px;
  color: white;
  font-size: 16px;
  font-weight: 700;
}
.task.done {
  opacity: 0.55;
  background: rgba(94, 159, 109, 0.04);
  border-color: rgba(94, 159, 109, 0.25);
}
.task.done .task-title { text-decoration: line-through; }
.task-body { flex: 1; }
.task-title { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.task-meta { font-size: 13px; color: var(--soft); }
.task-meta .tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  margin-right: 6px;
  background: var(--sand);
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
}

.video-shot {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 14px;
}
.video-shot.done {
  border-left-color: var(--emerald);
  opacity: 0.7;
}
.video-shot h3 {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.video-shot .shot-id {
  display: inline-block;
  background: var(--teal);
  color: white;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
}
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 18px;
  font-size: 13.5px;
  margin: 8px 0 12px;
}
.shot-grid .field-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 2px;
}
.shot-grid .field-value {
  color: var(--ink);
}

.progress-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cream);
  padding: 16px 0 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.progress-track {
  height: 6px;
  background: var(--sand);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 999px;
  width: 0%;
  transition: width 0.4s;
}
.progress-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--soft);
}
.progress-label strong { color: var(--teal); }

.reset-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--faint);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  margin-left: 12px;
  transition: all 0.15s;
}
.reset-btn:hover { color: var(--coral); border-color: var(--coral); }

footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
  text-align: center;
}

@media (max-width: 600px) {
  .wrap { padding: 28px 16px 80px; }
  h1 { font-size: 32px; }
  h2 { font-size: 22px; }
  .doc-grid { grid-template-columns: 1fr; }
}
