/* Solution playbook — keep in sync with Admin SolutionExtPreview.
   Source of truth: samples/SOL-03.01-ROOF/preview.html */

.sol-pb {
  --ink: #12151a;
  --muted: #5c6775;
  --line: #dbe1e8;
  --bg: #eef1f5;
  --accent: var(--color, #ff6029);
  --card: #fff;
  --dark: #1a3c8f;
  --tint: #fdba74;
  box-sizing: border-box;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  font-family: "Segoe UI", system-ui, sans-serif;
}
.sol-pb *,
.sol-pb *::before,
.sol-pb *::after { box-sizing: border-box; }

.sol-pb .banner {
  background: var(--accent);
  color: #e8eef6;
  font-size: 14px;
  padding: 10px 20px;
}
.sol-pb .banner strong { color: var(--tint); }

.sol-pb .wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 0 72px;
}

.sol-pb .hero {
  position: relative;
  min-height: 400px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 40px 32px 44px;
  overflow: hidden;
}
.sol-pb .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1200px 280px at 12% -10%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(100deg, rgba(0,0,0,.28), rgba(0,0,0,.08));
}
.sol-pb .hero.has-cover::before {
  background: linear-gradient(100deg, rgba(0,0,0,.55), rgba(0,0,0,.18));
}
.sol-pb .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
.sol-pb .hero-inner { position: relative; z-index: 2; max-width: 920px; }
.sol-pb .kicker {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tint);
  margin-bottom: 10px;
}
.sol-pb .hero h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 0 0 12px;
  line-height: 1.2;
}
.sol-pb .hero p {
  font-size: 1.12rem;
  opacity: .92;
  max-width: 820px;
  margin: 0 0 16px;
}
.sol-pb .hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sol-pb .tag {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
}
.sol-pb .hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  font-size: 14px;
  opacity: .8;
}
.sol-pb .hero-meta button {
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
}

.sol-pb .section {
  background: var(--card);
  margin: 18px 0 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 28px 32px;
}
.sol-pb .section h2 {
  font-size: 1.35rem;
  color: var(--accent);
  margin: 0 0 8px;
}
.sol-pb .section .lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 920px;
}

.sol-pb .tri {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sol-pb .insight {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f8fafc;
}
.sol-pb .insight .vis {
  min-height: 120px;
  background: var(--dark);
  color: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.35;
  padding: 18px 16px;
}
.sol-pb .insight .vis.has-img {
  background-size: cover;
  background-position: center;
  color: transparent;
}
.sol-pb .insight .txt { padding: 14px; }
.sol-pb .insight h3 { font-size: 1.02rem; margin: 0 0 6px; }
.sol-pb .insight p { font-size: .92rem; color: var(--muted); margin: 0; }

.sol-pb .decision {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: #f8fafc;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--muted);
}
.sol-pb .decision ol { padding-left: 20px; margin: 8px 0 0; }
.sol-pb .decision li { margin-bottom: 6px; }
.sol-pb .decision li:last-child { margin-bottom: 0; }

.sol-pb .facts {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.02rem;
  margin: 8px 0 4px;
}
.sol-pb .facts th,
.sol-pb .facts td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.sol-pb .facts th {
  background: #f8fafc;
  width: 28%;
  color: var(--accent);
}

.sol-pb .filmstrip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.sol-pb .frame {
  background: var(--dark);
  aspect-ratio: 4/3;
  color: #94a3b8;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}
.sol-pb .frame strong {
  display: block;
  color: #e2e8f0;
  font-size: 13px;
  margin-bottom: 4px;
}
.sol-pb .frame.has-img {
  background-size: cover;
  background-position: center;
  position: relative;
  color: transparent;
}
.sol-pb .frame.has-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55));
}
.sol-pb .frame.has-img strong {
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}

.sol-pb .steps { display: grid; gap: 12px; }
.sol-pb .step {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.sol-pb .step-visual {
  min-height: 190px;
  background: var(--dark);
  color: var(--tint);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 24px 28px;
}
.sol-pb .step-visual-label {
  display: block;
  max-width: 92%;
}
.sol-pb .step-visual .badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--accent);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sol-pb .step-visual.has-img {
  background-size: cover;
  background-position: center;
  color: transparent;
}
.sol-pb .step-visual.has-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.35));
  pointer-events: none;
}
.sol-pb .step-visual.has-img .badge { z-index: 1; }
.sol-pb .step-body { padding: 16px 18px; }
.sol-pb .step-body h3 { font-size: 1.12rem; margin: 0 0 6px; }
.sol-pb .step-body p { font-size: .98rem; color: var(--muted); margin: 0 0 8px; }
.sol-pb .step-body ul { padding-left: 18px; margin: 0; }
.sol-pb .step-body li { font-size: .94rem; color: var(--muted); margin-bottom: 3px; }

.sol-pb .matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.02rem;
  margin-top: 8px;
}
.sol-pb .matrix th,
.sol-pb .matrix td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.sol-pb .matrix th { background: #f8fafc; color: var(--accent); }
.sol-pb .matrix a { color: var(--accent); }

.sol-pb .note-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #f8fafc;
}
.sol-pb .note-card p { font-size: .94rem; color: var(--muted); margin: 0; }

.sol-pb .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sol-pb .cta a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
}
.sol-pb .cta .primary { background: var(--color, #ff6029); color: #fff; }
.sol-pb .cta .ghost {
  border: 1px solid var(--line);
  color: var(--color, #ff6029);
  background: #f8fafc;
}

.sol-pb .fail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sol-pb .fail-card {
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.sol-pb .fail-card .vis {
  height: 120px;
  background: linear-gradient(135deg, var(--accent), var(--dark));
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 16px 14px;
}
.sol-pb .fail-card .vis.has-img {
  background-size: cover;
  background-position: center;
  color: transparent;
}
.sol-pb .fail-card .txt { padding: 12px 14px; }
.sol-pb .fail-card h3 { font-size: .98rem; margin: 0 0 4px; }
.sol-pb .fail-card p { font-size: .9rem; color: var(--muted); margin: 0; }

.sol-pb .faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: #f8fafc;
}
.sol-pb .faq summary { cursor: pointer; font-weight: 600; color: var(--accent); font-size: 1.02rem; }
.sol-pb .faq p { margin: 8px 0 0; font-size: .95rem; color: var(--muted); }

.sol-pb .related { display: flex; flex-wrap: wrap; gap: 10px; }
.sol-pb .related a {
  text-decoration: none;
  color: var(--accent);
  font-size: .95rem;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 8px;
}

.sol-pb .qa-ask-wrap { margin-bottom: 12px; }
.sol-pb .qa-ask-wrap .btn-ask {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: .95rem;
}
.sol-pb .qa-item {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.sol-pb .qa-item-title a { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 1.02rem; }
.sol-pb .qa-item-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.sol-pb .qa-more-wrap { text-align: center; margin-top: 12px; }
.sol-pb .qa-more-wrap a { color: var(--accent); font-size: .95rem; }

.sol-pb .cms-author-byline {
  font-size: 14px;
  opacity: .8;
  margin: 0 0 10px;
}
.sol-pb .cms-author-byline a { color: var(--tint); }

.sol-pb-page { background: #eef1f5; }

@media (max-width: 800px) {
  .sol-pb .tri,
  .sol-pb .fail { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .sol-pb .step { grid-template-columns: 1fr; }
  .sol-pb .hero { min-height: 280px; padding: 28px 20px 32px; }
  .sol-pb .section { margin: 14px 0 0; padding: 20px 16px; }
  .sol-pb .wrap { padding: 0 12px 48px; }
}
