/* Rich guide blocks for calculator pages */

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}

.content-card,
.step-card,
.example-card,
.tip-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.content-card h4,
.step-card h4,
.example-card h4,
.tip-card h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.content-card p,
.step-card p,
.example-card p,
.tip-card p {
  margin-bottom: 0;
}

.steps-list {
  counter-reset: guide-step;
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.step-card {
  position: relative;
  padding-left: 58px;
}

.step-card::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--dark);
  border-radius: 999px;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.guide-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 20px 0;
}

.guide-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--dark-3);
}

.guide-table th,
.guide-table td {
  padding: 13px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
  vertical-align: top;
}

.guide-table th {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.82rem;
  background: linear-gradient(180deg, rgba(0,200,150,0.16), rgba(0,200,150,0.06));
}

.guide-table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.018);
}

.guide-table tbody tr:hover td {
  background: rgba(0,200,150,0.055);
}

.guide-table tr:last-child td {
  border-bottom: none;
}

.check-list,
.mistake-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.check-list li,
.mistake-list li {
  position: relative;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  padding-left: 28px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

.mistake-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(248,81,73,0.12);
  color: #f85149;
  font-size: 0.72rem;
  font-weight: 800;
  top: 3px;
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.flow-item {
  min-height: 92px;
  background: linear-gradient(180deg, rgba(0,200,150,0.1), rgba(0,200,150,0.03));
  border: 1px solid rgba(0,200,150,0.22);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.flow-item span {
  display: block;
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 6px;
}

.flow-item strong {
  display: block;
  color: var(--white);
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.flow-item small {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.faq-list details {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.faq-list p {
  margin: 10px 0 0;
}

.callout-note {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  background: rgba(0,200,150,0.08);
  border-radius: var(--radius-sm);
}

.section-intro {
  color: var(--text-muted);
  max-width: 780px;
  margin: -20px auto 28px;
  font-size: 0.98rem;
  line-height: 1.7;
  text-align: center;
}

.home-guide {
  padding: 64px 0 76px;
  background: var(--dark);
}

.home-copy {
  max-width: 920px;
  margin: 0 auto;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section > h2,
.content-section > p,
.content-section > ul,
.content-section > .faq-list,
.content-section > .callout-note,
.content-section > .guide-table-wrap,
.content-section > .flow-strip {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.content-section h2 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: 0;
  position: relative;
  padding-top: 18px;
}

.content-section h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), rgba(0,200,150,0));
}

.content-section p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.content-section p strong,
.content-section a {
  color: var(--green);
}

.guide-table td:first-child {
  color: var(--white);
  font-weight: 500;
}

.content-section .guide-table th,
.content-section .guide-table td {
  line-height: 1.55;
}

.content-section .check-list,
.content-section .mistake-list {
  margin-bottom: 26px;
}

.tool-icon {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0,200,150,0.1);
  border: 1px solid rgba(0,200,150,0.22);
  color: var(--green);
  font-size: 1rem;
}

.why-icon {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(0,200,150,0.1);
  border: 1px solid rgba(0,200,150,0.22);
  color: var(--green);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.content-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: stretch;
  margin: 30px 0;
}

.feature-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.metric-stack {
  display: grid;
  gap: 12px;
}

.metric-pill {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,200,150,0.22);
  background: rgba(0,200,150,0.08);
}

.metric-pill span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.metric-pill strong {
  color: var(--white);
}

.related-tools {
  margin-top: 42px;
  padding: 28px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.related-tools-footer {
  margin-top: 0;
  border-left: none;
  border-right: none;
  border-radius: 0;
}

.related-tools-footer .container {
  padding: 0 20px;
}

.section-kicker {
  color: var(--green);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.related-tools h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.related-card {
    display: flex; 
    flex-direction: column;
    gap: 9px;
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--dark-3);
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.related-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0,200,150,0.45);
    background: rgba(0,200,150,0.07);
}

.related-card .related-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    color: var(--green);
    background: rgba(0,200,150,0.1);
}

.related-card strong {
    color: var(--white);
    font-size: 0.9rem;
}

.related-card small {
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 768px) {
  .content-grid,
  .flow-strip,
  .content-feature,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-card {
    padding-left: 52px;
  }

  .home-copy {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    .content-feature {
      grid-template-columns: 1fr;
    }
}
