/*
 * playbook.phoenixareahome.com — Money Hub Styles
 * Hub: The Money Question (/money)
 * Money accent: #16a34a (green-600)
 * All classes prefixed pb-money- to avoid collisions with styles.css
 * Responsive breakpoints: 1023px (tablet), 639px (mobile)
 */

/* ============================================================
   ZONE 1: LOBBY
============================================================ */

.pb-money-lobby {
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}

.pb-money-hub-tag {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #16a34a;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pb-money-h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  margin: 0 0 1rem;
}

.pb-money-lead {
  font-size: 1.25rem;
  color: #334155;
  line-height: 1.5;
  margin: 0 0 0.875rem;
  max-width: 680px;
}

.pb-money-subtext {
  font-size: 1rem;
  color: #475569;
  line-height: 1.65;
  max-width: 640px;
  margin: 0 0 1.75rem;
}

.pb-money-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.pb-money-anchor {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1.5px solid #16a34a;
  color: #16a34a;
  border-radius: 24px;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  min-height: 48px;
  transition: background 0.18s, color 0.18s;
}

.pb-money-anchor:hover {
  background: #16a34a;
  color: #fff;
}

.pb-money-anchor:focus-visible {
  outline: 2px solid #15803d;
  outline-offset: 2px;
}

/* ============================================================
   SHARED DATA ROOM TYPOGRAPHY
============================================================ */

.pb-money-section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid #16a34a;
  display: inline-block;
}

.pb-money-section-heading--spaced {
  margin-top: 3rem;
}

.pb-money-section-intro {
  font-size: 0.9375rem;
  color: #475569;
  margin: 0.5rem 0 1.5rem;
  line-height: 1.55;
}

/* ============================================================
   TAX COMPARISON TABLE
============================================================ */

.pb-money-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.pb-money-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: #fff;
}

.pb-money-table thead tr {
  background: #0f172a;
}

.pb-money-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #e2e8f0;
  white-space: nowrap;
}

.pb-money-table tbody tr {
  border-bottom: 1px solid #e2e8f0;
}

.pb-money-table tbody tr:last-child {
  border-bottom: none;
}

.pb-money-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.pb-money-table tbody tr:hover {
  background: #f0fdf4;
}

.pb-money-table tbody td {
  padding: 13px 16px;
  color: #334155;
  line-height: 1.4;
  vertical-align: top;
}

.pb-money-table tbody td:first-child {
  font-weight: 500;
  color: #1e293b;
}

.pb-money-td-ca {
  color: #991b1b;
}

.pb-money-td-az {
  color: #166534;
  font-weight: 600;
}

.pb-money-td-diff {
  text-align: right;
  white-space: nowrap;
}

.pb-money-td-total {
  font-weight: 700;
  color: #991b1b;
}

.pb-money-savings {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 2px 8px;
  border-radius: 12px;
}

.pb-money-footnote {
  display: block;
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 2px;
  font-style: italic;
}

/* LLC Fee Table variant */
.pb-money-table--fees thead tr {
  background: #7f1d1d;
}

.pb-money-caption {
  caption-side: bottom;
  padding: 10px 16px;
  font-size: 0.8125rem;
  color: #64748b;
  font-style: italic;
  text-align: left;
  line-height: 1.5;
  background: #fafafa;
  border-top: 1px solid #e2e8f0;
}

/* ============================================================
   TAX SURPRISES (details/summary accordion)
============================================================ */

.pb-money-surprises {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.pb-money-surprise {
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.pb-money-surprise:last-child {
  border-bottom: none;
}

.pb-money-surprise[open] {
  background: #f0fdf4;
}

.pb-money-surprise-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  min-height: 56px;
  transition: background 0.15s;
}

.pb-money-surprise-summary::-webkit-details-marker {
  display: none;
}

.pb-money-surprise-summary::marker {
  display: none;
}

.pb-money-surprise-summary:hover {
  background: #f0fdf4;
}

.pb-money-surprise-summary:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: -2px;
}

.pb-money-surprise[open] > .pb-money-surprise-summary {
  background: #dcfce7;
  border-bottom: 1px solid #bbf7d0;
}

.pb-money-surprise-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: #16a34a;
  letter-spacing: 0.05em;
  min-width: 28px;
  flex-shrink: 0;
}

.pb-money-surprise-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  flex: 1;
}

.pb-money-surprise-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-right: 2px solid #475569;
  border-bottom: 2px solid #475569;
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-top: -4px;
}

.pb-money-surprise[open] > .pb-money-surprise-summary .pb-money-surprise-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.pb-money-surprise-body {
  padding: 0 20px 18px 64px;
}

.pb-money-surprise-body p {
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   GAIN / LOSE TWO-COLUMN LAYOUT
============================================================ */

.pb-money-gainlose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.pb-money-gain,
.pb-money-lose {
  border-radius: 8px;
  padding: 1.5rem;
}

.pb-money-gain {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.pb-money-lose {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.pb-money-gainlose-heading {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pb-money-gainlose-heading--gain {
  color: #15803d;
}

.pb-money-gainlose-heading--lose {
  color: #b91c1c;
}

.pb-money-gainlose-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pb-money-gain .pb-money-gainlose-list li {
  font-size: 0.9375rem;
  color: #166534;
  padding: 0.375rem 0 0.375rem 1.625rem;
  position: relative;
  line-height: 1.5;
  border-bottom: 1px solid #dcfce7;
}

.pb-money-gain .pb-money-gainlose-list li:last-child {
  border-bottom: none;
}

.pb-money-gain .pb-money-gainlose-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}

.pb-money-lose .pb-money-gainlose-list li {
  font-size: 0.9375rem;
  color: #991b1b;
  padding: 0.375rem 0 0.375rem 1.625rem;
  position: relative;
  line-height: 1.5;
  border-bottom: 1px solid #fee2e2;
}

.pb-money-lose .pb-money-gainlose-list li:last-child {
  border-bottom: none;
}

.pb-money-lose .pb-money-gainlose-list li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: 700;
}

/* ============================================================
   ZONE 3: TOOL ROOM
============================================================ */

.pb-money-tool-room {
  scroll-margin-top: 70px;
}

/* ============================================================
   ZONE 4: DEPTH — Nexus Trap
============================================================ */

.pb-money-anchor-target {
  scroll-margin-top: 70px;
}

.pb-money-nexus-intro {
  font-size: 1.0625rem;
  color: #334155;
  line-height: 1.7;
  margin: 0 0 2rem;
  padding-left: 1.25rem;
  border-left: 4px solid #dc2626;
}

.pb-money-nexus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.pb-money-nexus-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pb-money-nexus-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.pb-money-nexus-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #b91c1c;
  flex-shrink: 0;
  margin-top: 2px;
}

.pb-money-nexus-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.35;
}

.pb-money-nexus-body {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.pb-money-nexus-cpa {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  border-radius: 0 4px 4px 0;
  padding: 0.625rem 0.875rem;
}

.pb-money-nexus-cpa-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #92400e;
  margin-bottom: 0.25rem;
}

.pb-money-nexus-cpa p {
  font-size: 0.875rem;
  color: #78350f;
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

/* Send to CPA callout */
.pb-money-cpa-callout {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 0.5rem 0 3rem;
}

.pb-money-cpa-callout-heading {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #15803d;
  margin: 0 0 0.75rem;
}

.pb-money-cpa-callout p {
  font-size: 0.9375rem;
  color: #166534;
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   EQUITY COMPARISON
============================================================ */

.pb-money-equity-section {
  margin-top: 0;
  padding-top: 0.5rem;
}

.pb-money-equity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1rem 0 1.25rem;
}

.pb-money-equity-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.pb-money-equity-header {
  background: #0f172a;
  padding: 1rem 1.25rem;
}

.pb-money-equity-route {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.pb-money-equity-freed {
  font-size: 1.125rem;
  font-weight: 800;
  color: #4ade80;
}

.pb-money-equity-body {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.65;
  padding: 1.25rem;
  margin: 0;
}

.pb-money-equity-note {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.55;
  font-style: italic;
  margin: 0;
}

.pb-money-inline-link {
  color: #16a34a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pb-money-inline-link:hover {
  color: #15803d;
}

.pb-money-inline-link:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================================
   NEXT HUB CTA
============================================================ */

.pb-money-next-hub {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.pb-money-next-hub-text {
  font-size: 1.0625rem;
  color: #475569;
  line-height: 1.65;
  margin: 0 auto 1.5rem;
  max-width: 560px;
}

.pb-money-next-btn {
  display: inline-flex;
  align-items: center;
  background: #16a34a;
  color: #fff;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 48px;
  transition: background 0.18s;
}

.pb-money-next-btn:hover {
  background: #15803d;
  color: #fff;
}

.pb-money-next-btn:focus-visible {
  outline: 2px solid #15803d;
  outline-offset: 2px;
}

/* ============================================================
   RESPONSIVE — 1023px (tablet)
============================================================ */

@media (max-width: 1023px) {
  .pb-money-equity-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

/* ============================================================
   RESPONSIVE — 639px (mobile)
============================================================ */

@media (max-width: 639px) {
  .pb-money-h1 {
    font-size: 2rem;
  }

  .pb-money-lead {
    font-size: 1.05rem;
  }

  .pb-money-anchors {
    flex-direction: column;
    align-items: flex-start;
  }

  .pb-money-section-heading {
    font-size: 1.25rem;
  }

  .pb-money-table {
    font-size: 0.875rem;
  }

  .pb-money-table thead th,
  .pb-money-table tbody td {
    padding: 10px 12px;
  }

  .pb-money-surprise-summary {
    gap: 0.625rem;
    padding: 14px 16px;
  }

  .pb-money-surprise-body {
    padding: 0 16px 16px 16px;
  }

  .pb-money-gainlose {
    grid-template-columns: 1fr;
  }

  .pb-money-nexus-grid {
    grid-template-columns: 1fr;
  }

  .pb-money-equity-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .pb-money-surprise-chevron {
    width: 14px;
    height: 14px;
  }

  .pb-money-nexus-intro {
    font-size: 1rem;
    padding-left: 1rem;
  }

  .pb-money-data-room,
  .pb-money-depth {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ============================================================
   STANDALONE TOOL PAGE (tools/tax-engine.html)
============================================================ */

.pb-money-tool-back {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
}

.pb-money-tool-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.625rem;
  line-height: 1.2;
}

.pb-money-tool-intro {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  max-width: 600px;
}
