/* ═══════════════════════════════════════════════════════
   GASTROBRANDS - problem.css  (Problem pages) v4.0
═══════════════════════════════════════════════════════ */

.pb-hero {
  background: var(--parchment);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--ink-faint);
}
.pb-hero .section-label { margin-bottom: .5rem; display: flex; }
.pb-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: .4rem 0 1rem; }
.pb-hero .summary {
  font-size: 1rem;
  color: var(--ink-mid);
  max-width: 620px;
  line-height: 1.75;
  font-style: italic;
  font-weight: 300;
  border-left: 2px solid var(--teal);
  padding-left: 1rem;
  margin-top: .5rem;
}

.breadcrumb {
  font-size: .75rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 400;
  letter-spacing: .04em;
}
.breadcrumb a { color: var(--ink-muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: var(--ink-faint); }

.pb-body { padding: 3.5rem 0 5rem; }
.pb-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
  align-items: start;
}
/* Desktop: sidebar visible, next-problems hidden */
.next-problems { display: none; }

@media (max-width: 860px) {
  .pb-grid { grid-template-columns: 1fr; }
  .pb-sidebar { display: none; }
  .next-problems { display: block; }
}

.pb-section { margin-bottom: 3rem; }
.pb-section h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--ink-faint);
  color: var(--ink);
  font-weight: 700;
}
.pb-section p { font-size: .95rem; line-height: 1.8; color: var(--ink-mid); margin-bottom: .8rem; font-weight: 300; }

/* ── Insight box - parchment with teal accent ── */
.insight-box {
  background: var(--parchment);
  color: var(--ink);
  border-left: 3px solid var(--teal);
  border-radius: var(--r-md);
  padding: 1.75rem 2rem;
  margin-bottom: 3rem;
  position: relative;
}
.insight-box::before {
  content: '\201C';
  position: absolute;
  top: .5rem;
  left: 1.5rem;
  font-size: 5rem;
  line-height: 1;
  color: var(--teal);
  font-family: Georgia, serif;
  opacity: .25;
}
.insight-box h2 {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  border: none;
  padding: 0;
  margin-bottom: .75rem;
}
.insight-box p {
  color: var(--ink-mid);
  font-size: .95rem;
  line-height: 1.8;
  margin: 0 0 .75rem;
  font-weight: 400;
}
.insight-box p:last-child { margin-bottom: 0; }

/* ── Context table ── */
.context-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: .5rem;
  font-size: .92rem;
}
.context-table tr { border-bottom: 1px solid var(--ink-faint); }
.context-table tr:last-child { border-bottom: none; }
.context-table td {
  padding: .9rem .75rem;
  vertical-align: top;
  color: var(--ink-mid);
  line-height: 1.65;
  font-weight: 300;
}
.context-table td:first-child {
  width: 38%;
  font-weight: 500;
  color: var(--ink);
}

/* ── Playbook steps ── */
.playbook-steps ol {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.playbook-steps ol li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: .75rem;
  align-items: start;
}
.playbook-steps ol li::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.playbook-steps ol li .step-content strong {
  display: block;
  color: var(--ink);
  font-size: .97rem;
  margin-bottom: .25rem;
  font-weight: 500;
}
.playbook-steps ol li .step-content p {
  font-size: .9rem;
  color: var(--ink-mid);
  margin: 0;
  font-weight: 300;
}

/* ── Checklist box ── */
.checklist-box {
  background: var(--parchment);
  border: 1px solid var(--ink-faint);
  border-radius: var(--r-md);
  padding: 1.25rem 1.4rem;
  margin-top: 1.5rem;
}
.checklist-box h4 {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.checklist-box ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.checklist-box ul li {
  font-size: .88rem;
  color: var(--ink-mid);
  font-weight: 300;
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.checklist-box ul li::before { content: "\2713"; color: var(--teal); font-weight: 700; flex-shrink: 0; }

/* ── Solution cards ── */
.solution-cards {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: .5rem;
  background: var(--ink-faint);
}
.solution-card {
  background: var(--white);
  padding: 1.25rem 1.4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem 1rem;
  align-items: center;
  transition: background .2s;
}
.solution-card:hover { background: var(--teal-lt); }
.solution-card-name { font-weight: 500; font-size: .97rem; color: var(--ink); margin-bottom: .2rem; }
.solution-card-note { font-size: .84rem; color: var(--ink-mid); line-height: 1.6; grid-column: 1; font-weight: 300; }
.solution-card a.btn { grid-column: 2; grid-row: 1 / 3; align-self: center; white-space: nowrap; }

/* ── Sidebar ── */
.pb-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  display: none; /* hidden on mobile, shown on desktop below */
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 861px) {
  .pb-sidebar { display: flex; }
}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--ink-faint);
  border-radius: var(--r-md);
  padding: 1.4rem 1.5rem;
}
.sidebar-card h3 {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.sidebar-nav a {
  font-size: .88rem;
  color: var(--ink-mid);
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .5rem;
  border-radius: var(--r-sm);
  transition: background .15s, color .15s;
}
.sidebar-nav a:hover { background: var(--parchment); color: var(--teal); }
.sidebar-nav a.active { background: var(--teal-lt); color: var(--teal); font-weight: 500; }
.sidebar-nav .nav-emoji { font-size: 1rem; }
.sidebar-cta { background: var(--teal); color: var(--white); text-align: center; }
.sidebar-cta h3 { color: rgba(255,255,255,.65); }
.sidebar-cta p { font-size: .88rem; color: rgba(255,255,255,.75); margin-bottom: 1rem; font-weight: 300; }
.sidebar-cta .btn { width: 100%; justify-content: center; background: var(--white); color: var(--teal); font-weight: 500; }
.sidebar-cta .btn:hover { background: var(--cream); }

/* ── Next problems strip ── */
.next-problems { background: var(--parchment); border-top: 1px solid var(--ink-faint); padding: 3rem 0; }
.next-problems h2 { font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--ink-muted); font-weight: 500; }
.next-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; background: var(--ink-faint); }
.next-card {
  background: var(--white);
  padding: .9rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.next-card:hover { background: var(--teal-lt); color: var(--teal); }
.next-card .next-emoji { font-size: 1.2rem; }
