/* ── Guide pages ── */

.guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pt-border);
}

.guide-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pt-text-muted);
  padding: 0.4rem 0.875rem;
  border-radius: 2rem;
  border: 1px solid var(--pt-border);
  background: var(--pt-surface);
  transition: all 0.15s;
}

.guide-nav a:hover {
  color: var(--pt-primary);
  border-color: var(--pt-primary);
  background: var(--pt-primary-soft);
}

.guide-nav a.active {
  color: #fff;
  background: var(--pt-primary);
  border-color: var(--pt-primary);
}

.guide-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
  border-radius: var(--pt-radius-lg);
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
}

.guide-hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.guide-hero p {
  color: #94a3b8;
  margin: 0;
  max-width: 40rem;
  line-height: 1.6;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.guide-link-card {
  display: block;
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--pt-shadow-sm);
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
  color: inherit;
  height: 100%;
}

.guide-link-card:hover {
  box-shadow: var(--pt-shadow);
  border-color: var(--pt-primary);
  transform: translateY(-2px);
  color: inherit;
}

.guide-link-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.guide-link-card-icon.blue { background: var(--pt-primary-soft); }
.guide-link-card-icon.teal { background: var(--pt-accent-soft); }
.guide-link-card-icon.amber { background: #fef3c7; }
.guide-link-card-icon.slate { background: #f1f5f9; }

.guide-link-card h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--pt-text);
}

.guide-link-card p {
  font-size: 0.875rem;
  color: var(--pt-text-muted);
  margin: 0;
  line-height: 1.5;
}

.guide-link-card .arrow {
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pt-primary);
}

/* Compare tabs */
.compare-tabs .nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--pt-text-muted);
  border: 1px solid var(--pt-border);
  margin-right: 0.5rem;
  border-radius: 0.5rem !important;
}

.compare-tabs .nav-link.active {
  background: var(--pt-primary);
  border-color: var(--pt-primary);
  color: #fff;
}

.sdlc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sdlc-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--pt-border);
  font-size: 0.9rem;
}

.sdlc-list li:last-child { border-bottom: none; }

.sdlc-list .icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.sdlc-list .icon.skip {
  background: #fee2e2;
  color: #b91c1c;
}

.sdlc-list .icon.use {
  background: #dcfce7;
  color: #15803d;
}

.sdlc-list .icon.neutral {
  background: #f1f5f9;
  color: #64748b;
}

/* Flow diagram */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.flow-step {
  display: flex;
  gap: 1rem;
  cursor: pointer;
  padding: 0.875rem 1rem;
  border-radius: var(--pt-radius);
  border: 2px solid transparent;
  transition: all 0.15s;
  margin-bottom: 0.25rem;
}

.flow-step:hover {
  background: #f8fafc;
}

.flow-step.active {
  background: var(--pt-primary-soft);
  border-color: var(--pt-primary);
}

.flow-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--pt-nav-bg);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.flow-step.active .flow-step-num {
  background: var(--pt-primary);
}

.flow-step-label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.125rem;
}

.flow-step-desc {
  font-size: 0.8125rem;
  color: var(--pt-text-muted);
  margin: 0;
}

.flow-arrow {
  text-align: center;
  color: var(--pt-text-subtle);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.125rem 0 0.125rem 1rem;
}

.flow-detail-panel {
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  padding: 1.5rem;
  min-height: 280px;
  box-shadow: var(--pt-shadow-sm);
}

.flow-detail-panel h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* UI mockup (screenshot substitute) */
.ui-mockup {
  background: #f8fafc;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  overflow: hidden;
  box-shadow: var(--pt-shadow);
}

.ui-mockup-chrome {
  background: #e2e8f0;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.ui-mockup-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: #cbd5e1;
}

.ui-mockup-dot.red { background: #f87171; }
.ui-mockup-dot.yellow { background: #fbbf24; }
.ui-mockup-dot.green { background: #4ade80; }

.ui-mockup-url {
  flex: 1;
  background: #fff;
  border-radius: 0.25rem;
  padding: 0.2rem 0.625rem;
  font-size: 0.7rem;
  color: var(--pt-text-muted);
  margin-left: 0.5rem;
}

.ui-mockup-body {
  padding: 1.25rem;
  background: var(--pt-surface);
  font-size: 0.8125rem;
}

.ui-mockup-body .mock-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.ui-mockup-body .mock-badge {
  display: inline-block;
  padding: 0.2em 0.5em;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: #dcfce7;
  color: #15803d;
}

.ui-mockup-body .mock-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--pt-border);
}

.ui-mockup-body .mock-row:last-child { border-bottom: none; }

/* Approach option cards */
.approach-card {
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
}

.approach-card-header {
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
  transition: background 0.12s;
}

.approach-card-header:hover {
  background: #f8fafc;
}

.approach-card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.approach-card-header p {
  font-size: 0.8125rem;
  color: var(--pt-text-muted);
  margin: 0;
}

.approach-card-header .recommended {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--pt-accent-soft);
  color: var(--pt-accent);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  white-space: nowrap;
}

.approach-card-body {
  padding: 0 1.25rem 1.25rem;
  display: none;
}

.approach-card.open .approach-card-body {
  display: block;
}

.approach-card.open .approach-chevron {
  transform: rotate(180deg);
}

.approach-chevron {
  color: var(--pt-text-subtle);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.approach-example {
  background: #f8fafc;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  padding: 1rem 1.25rem;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--pt-text);
}

/* Four questions checklist */
.four-questions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.four-questions .q-card {
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--pt-shadow-sm);
}

.four-questions .q-num {
  width: 2rem;
  height: 2rem;
  background: var(--pt-primary);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.four-questions .q-text {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--pt-text);
}

.callout-box {
  border-left: 4px solid var(--pt-primary);
  background: var(--pt-primary-soft);
  border-radius: 0 var(--pt-radius) var(--pt-radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout-box.warning {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.callout-box strong {
  display: block;
  margin-bottom: 0.25rem;
}

.scope-wallet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 576px) {
  .scope-wallet { grid-template-columns: 1fr; }
}

.scope-column {
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  padding: 1rem 1.25rem;
}

.scope-column h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.scope-column.approved h4 { color: #15803d; }
.scope-column.pending h4 { color: #b45309; }

.scope-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

.scope-column li {
  padding: 0.375rem 0;
}

.scope-column.approved li::before { content: "✓ "; color: #15803d; font-weight: 700; }
.scope-column.pending li::before { content: "• "; color: #b45309; }

.not-in-sdlc-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--pt-radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.not-in-sdlc-banner h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #b91c1c;
  margin-bottom: 0.75rem;
}

.not-in-sdlc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.not-in-sdlc-tags span {
  background: #fff;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  text-decoration: line-through;
  text-decoration-color: #f87171;
}

/* Traditional SDLC tab */
.flow-steps--sdlc .flow-step-num {
  background: #64748b;
}

.flow-steps--sdlc .flow-step.active .flow-step-num {
  background: #475569;
}

.flow-steps--sdlc .flow-step.active {
  background: #f1f5f9;
  border-color: #64748b;
}

.flow-detail-panel--sdlc {
  min-height: 320px;
}

.deliverable-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0.75rem 0 1rem;
}

.deliverable-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 2rem;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.sdlc-design-ladder {
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--pt-shadow-sm);
}

.design-ladder-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.design-ladder-step {
  flex: 1 1 7rem;
  min-width: 6.5rem;
  text-align: center;
  background: #f8fafc;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  padding: 0.75rem 0.5rem;
}

.design-ladder-step--doc {
  background: #fffbeb;
  border-color: #fde68a;
}

.design-ladder-step--code {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.design-ladder-name {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--pt-text);
}

.design-ladder-note {
  display: block;
  font-size: 0.7rem;
  color: var(--pt-text-muted);
  margin-top: 0.125rem;
}

.design-ladder-arrow {
  flex-shrink: 0;
  color: var(--pt-text-subtle);
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 576px) {
  .design-ladder-arrow {
    display: none;
  }

  .design-ladder-step {
    flex: 1 1 calc(50% - 0.5rem);
  }
}
