/* TA Goal Setting Worksheet v2.0 — Three Horizon Framework */
.ta-worksheet {
  max-width: 720px;
  margin: 0 auto;
  font-family: inherit;
}

/* ── Intro ─────────────────────────────────────────────────────────────────── */

.tw-intro {
  background: #e2001a;
  color: #fff;
  padding: 28px 32px;
  border-radius: 8px;
  margin-bottom: 28px;
}

.tw-intro h2 {
  margin: 0 0 8px;
  font-size: 24px;
  color: #fff;
}

.tw-intro p {
  margin: 0;
  opacity: 0.9;
  font-size: 15px;
}

.tw-horizon-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.tw-hbadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
}

.tw-hbadge-1 { background: rgba(255,255,255,0.25); }
.tw-hbadge-2 { background: rgba(255,255,255,0.15); }
.tw-hbadge-3 { background: rgba(255,255,255,0.08); }

/* ── Sections ──────────────────────────────────────────────────────────────── */

.tw-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

.tw-section h3 {
  margin: 0 0 20px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111827;
}

.tw-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #e2001a;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Horizon sections */
.tw-h1-section { border-left: 4px solid #e2001a; }
.tw-h2-section { border-left: 4px solid #0284c7; }
.tw-h3-section { border-left: 4px solid #16a34a; }

.tw-horizon-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.tw-horizon-label {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.tw-hl-1 { background: #e2001a; }
.tw-hl-2 { background: #0284c7; }
.tw-hl-3 { background: #16a34a; }

.tw-horizon-header h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.tw-horizon-sub {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.tw-optional {
  font-weight: 400;
  font-size: 13px;
  color: #9ca3af;
}

/* ── Fields ────────────────────────────────────────────────────────────────── */

.tw-field {
  margin-bottom: 18px;
}

.tw-field:last-child {
  margin-bottom: 0;
}

.tw-field label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  color: #111827;
}

.tw-field select,
.tw-field input[type="date"],
.tw-field input[type="number"],
.tw-field input[type="text"],
.tw-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  background: #f9fafb;
  color: #111827;
  box-sizing: border-box;
}

.tw-field textarea {
  resize: vertical;
  line-height: 1.5;
}

.tw-field select:focus,
.tw-field input:focus,
.tw-field textarea:focus {
  outline: 2px solid #e2001a;
  outline-offset: 1px;
  background: #fff;
}

.tw-time-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tw-time-input input {
  width: 90px !important;
}

.tw-time-sep {
  font-size: 18px;
  font-weight: 700;
  color: #6b7280;
}

.tw-hint {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 10px;
  line-height: 1.5;
}

.tw-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 520px) {
  .tw-metrics-grid { grid-template-columns: 1fr; }
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */

.tw-submit-wrap {
  text-align: center;
  margin: 28px 0;
}

.tw-btn-primary {
  display: inline-block;
  background: #e2001a;
  color: #fff;
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.tw-btn-primary:hover { background: #b5001a; color: #fff; }

.tw-btn-primary:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  color: #9ca3af;
}

.tw-btn-secondary {
  display: inline-block;
  background: #fff;
  color: #e2001a;
  padding: 10px 22px;
  border: 2px solid #e2001a;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.tw-btn-secondary:hover { background: #fef2f2; }

/* ── Output ────────────────────────────────────────────────────────────────── */

#tw-output {
  margin-top: 32px;
}

.tw-output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.tw-output-header h2 { margin: 0; }

.tw-result-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 16px;
}

.tw-result-title {
  margin: 0 0 16px;
  font-size: 17px;
  color: #111827;
}

/* Horizon output cards */
.tw-goal-card { border-left: 4px solid #e2001a; }
.tw-h2-card   { border-left: 4px solid #0284c7; }
.tw-h3-card   { border-left: 4px solid #16a34a; }

.tw-horizon-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.tw-h1-chip { background: #fef2f2; color: #b91c1c; }
.tw-h2-chip { background: #eff6ff; color: #1d4ed8; }
.tw-h3-chip { background: #f0fdf4; color: #15803d; }

.tw-commitment {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.5;
  color: #111827;
}

.tw-why {
  margin: 8px 0 0;
  padding: 10px 14px;
  border-left: 3px solid #fca5a5;
  background: #fef9f9;
  font-style: italic;
  color: #4b5563;
  font-size: 14px;
  border-radius: 0 4px 4px 0;
}

.tw-h3-why {
  font-style: italic;
  color: #6b7280;
  margin-top: 8px;
  font-size: 14px;
}

/* Reality check items */
.tw-rc-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.tw-rc-item:last-child { margin-bottom: 0; }

.tw-rc-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.tw-rc-icon {
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  margin-top: 1px;
}

.tw-rc-green { background: #f0fdf4; color: #15803d; }
.tw-rc-green .tw-rc-icon { color: #16a34a; }
.tw-rc-amber { background: #fffbeb; color: #92400e; }
.tw-rc-amber .tw-rc-icon { color: #d97706; }
.tw-rc-red   { background: #fef2f2; color: #991b1b; }
.tw-rc-red   .tw-rc-icon { color: #dc2626; }
.tw-rc-info  { background: #eff6ff; color: #1e40af; }
.tw-rc-info  .tw-rc-icon { color: #2563eb; }

/* Focus list */
.tw-focus-list {
  margin: 0;
  padding-left: 20px;
}

.tw-focus-list li {
  margin-bottom: 8px;
  font-size: 15px;
  color: #374151;
  line-height: 1.5;
}

/* Article links */
.tw-article-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tw-article-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  text-decoration: none;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}

.tw-article-link:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #e2001a;
}

.tw-article-arrow {
  color: #e2001a;
  font-weight: 700;
  flex-shrink: 0;
}

/* CTA box */
.tw-cta-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 24px 28px;
  margin-top: 24px;
  text-align: center;
}

.tw-cta-box h3 { margin: 0 0 8px; }
.tw-cta-box p  { color: #4b5563; margin: 0 0 16px; font-size: 15px; }
