/* Focused refinements for long-form blog content layered after public.css. */
.prose-content.spreadsheet-guide table thead th {
  background-color: #111827;
  border-bottom-color: #ff6b35;
  color: #fff;
}

.prose-content.spreadsheet-guide .guide-calc-gluten-free {
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
}

.prose-content.spreadsheet-guide .guide-calculation {
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.dark .prose-content.spreadsheet-guide .guide-calculation {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.prose-content.spreadsheet-guide .guide-calculation-title {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.prose-content.spreadsheet-guide .guide-calculation-title::before {
  background: linear-gradient(180deg, #ff8a5c, #ff6b35);
  border-radius: 999px;
  content: "";
  flex: 0 0 auto;
  height: 1.5rem;
  width: 0.3rem;
}

.prose-content.spreadsheet-guide .guide-calc-grid {
  align-items: stretch;
  gap: 2.75rem;
}

.prose-content.spreadsheet-guide .guide-calc-card {
  align-items: center;
  border: 1px solid rgba(107, 114, 128, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 10.75rem;
  padding: 1.5rem;
  position: relative;
}

.prose-content.spreadsheet-guide .guide-calc-card p {
  margin: 0;
}

.prose-content.spreadsheet-guide .guide-calc-label {
  font-weight: 600;
  line-height: 1.35;
}

.prose-content.spreadsheet-guide .guide-calc-value {
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-top: 1rem;
}

.prose-content.spreadsheet-guide .guide-calc-detail {
  align-items: center;
  display: flex;
  justify-content: center;
  line-height: 1.4;
  margin-top: 0.9rem;
  min-height: 2.8rem;
}

.prose-content.spreadsheet-guide .guide-calc-example {
  border-top: 1px dashed rgba(107, 114, 128, 0.35);
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
}

.dark .prose-content.spreadsheet-guide .guide-calc-example {
  border-top-color: rgba(156, 163, 175, 0.3);
}

@media (min-width: 768px) {
  .prose-content.spreadsheet-guide .guide-calc-card:nth-child(1)::after,
  .prose-content.spreadsheet-guide .guide-calc-card:nth-child(2)::after {
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #ff6b35;
    display: flex;
    font-size: 1.2rem;
    font-weight: 700;
    height: 1.8rem;
    justify-content: center;
    position: absolute;
    right: -2.3rem;
    top: calc(50% - 0.9rem);
    width: 1.8rem;
    z-index: 2;
  }

  .prose-content.spreadsheet-guide .guide-calc-card:nth-child(1)::after {
    content: "−";
  }

  .prose-content.spreadsheet-guide .guide-calc-card:nth-child(2)::after {
    content: "=";
  }

  .dark .prose-content.spreadsheet-guide .guide-calc-card:nth-child(1)::after,
  .dark .prose-content.spreadsheet-guide .guide-calc-card:nth-child(2)::after {
    background: #1f2937;
    border-color: #4b5563;
  }
}

@media (max-width: 767px) {
  .prose-content.spreadsheet-guide .guide-calc-grid {
    gap: 2.75rem;
  }

  .prose-content.spreadsheet-guide .guide-calc-card:nth-child(2)::before,
  .prose-content.spreadsheet-guide .guide-calc-card:nth-child(3)::before {
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #ff6b35;
    display: flex;
    font-size: 1.2rem;
    font-weight: 700;
    height: 1.8rem;
    justify-content: center;
    left: calc(50% - 0.9rem);
    position: absolute;
    top: -2.3rem;
    width: 1.8rem;
  }

  .prose-content.spreadsheet-guide .guide-calc-card:nth-child(2)::before {
    content: "−";
  }

  .prose-content.spreadsheet-guide .guide-calc-card:nth-child(3)::before {
    content: "=";
  }

  .dark .prose-content.spreadsheet-guide .guide-calc-card:nth-child(2)::before,
  .dark .prose-content.spreadsheet-guide .guide-calc-card:nth-child(3)::before {
    background: #1f2937;
    border-color: #4b5563;
  }
}

.dark .prose-content.spreadsheet-guide .guide-calc-gluten-free {
  background-color: rgba(124, 45, 18, 0.3);
  border-color: rgba(249, 115, 22, 0.35);
}

.prose-content.spreadsheet-guide .guide-tab-card {
  background: linear-gradient(145deg, #fff, #fafafa);
}

.dark .prose-content.spreadsheet-guide .guide-tab-card {
  background: linear-gradient(145deg, #1f2937, #202938);
}

.prose-content.spreadsheet-guide .guide-tab-card-featured {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.09), rgba(255, 134, 89, 0.03));
  border-color: rgba(255, 107, 53, 0.25);
}

.dark .prose-content.spreadsheet-guide .guide-tab-card-featured {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.14), rgba(31, 41, 55, 0.95));
  border-color: rgba(255, 107, 53, 0.35);
}

.prose-content.spreadsheet-guide .guide-bullet-list {
  list-style: disc;
  padding-left: 1.5rem;
}

.prose-content.spreadsheet-guide .guide-bullet-list li::marker {
  color: #ff6b35;
}

.prose-content.spreadsheet-guide .guide-final-cta h2 {
  color: #fff;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.prose-content.spreadsheet-guide .guide-final-cta p {
  margin-top: 0;
}

.prose-content.spreadsheet-guide .guide-final-cta .guide-cta-kicker {
  color: #ff8a5c;
}

.prose-content.spreadsheet-guide .guide-final-cta .guide-cta-copy {
  color: #d1d5db;
}

.prose-content.spreadsheet-guide .faq-question:focus-visible {
  border-radius: 0.5rem;
  outline: 2px solid #ff6b35;
  outline-offset: 3px;
}

@media (max-width: 639px) {
  .prose-content.spreadsheet-guide .guide-primary-cta {
    display: flex;
    font-size: 0.875rem;
    justify-content: center;
    line-height: 1.25rem;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
  }

  .prose-content.spreadsheet-guide .guide-final-cta {
    padding: 1.5rem;
  }

  .prose-content.spreadsheet-guide .guide-final-cta h2 {
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .prose-content.spreadsheet-guide .guide-table {
    min-width: 620px;
  }
}
