/* ==========================================================================
   content.css  —  Reusable SEO article + FAQ blocks
   Used on calculator pages below the tool. Shared, so keep it generic.
   ========================================================================== */

/* ------------------------------------------------------------- Article */
.article { padding-block: clamp(44px, 6vw, 76px); background: var(--section-bg); }

.article-head { text-align: center; margin-bottom: 40px; }
.article-head span.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.article-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.article-head .head-sub { margin-top: 10px; color: var(--muted); font-size: 1rem; }

/* Lead paragraph */
.prose .lead { font-size: 1.12rem; color: var(--heading); line-height: 1.7; }

/* Section headings with a small brand accent bar */
.prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 34px 0 14px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.prose h3:first-child { margin-top: 0; }
.prose h3::before {
  content: "";
  width: 4px; height: 22px;
  border-radius: 3px;
  background: var(--primary-grad);
  flex-shrink: 0;
}
.prose p { color: var(--text); font-size: 1rem; line-height: 1.75; margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--heading); font-weight: 600; }

/* Tip / note callout */
.note-box {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  padding: 15px 18px;
  margin: 24px 0;
}
.note-box .note-ic {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--tint-amber);
  color: #C77E10;
  display: flex; align-items: center; justify-content: center;
}
.note-box .note-ic .micon { width: 19px; height: 19px; }
.note-box p { margin: 0; font-size: .92rem; color: var(--text); line-height: 1.6; }

/* Guide sidebar — "At a glance" facts box */
.guide-aside { position: sticky; top: calc(var(--header-h) + 22px); }
.facts-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
}
.facts-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 9px;
}
.facts-card h3 .f-ic { width: 20px; height: 20px; color: var(--primary); }
.facts-list { display: flex; flex-direction: column; }
.facts-list li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: .9rem;
}
.facts-list li:last-child { border-bottom: none; }
.facts-list .f-label { color: var(--muted); }
.facts-list .f-val { color: var(--heading); font-weight: 600; text-align: right; }

/* Numbered "how to use" steps */
.how-list { display: grid; gap: 14px; margin: 20px 0 8px; }
.how-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.how-list .num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary-grad);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.how-list .step-body strong { display: block; margin-bottom: 2px; }
.how-list .step-body p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* Function highlight grid */
.fn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0 8px;
}
.fn-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.fn-item .fn-key {
  flex-shrink: 0;
  min-width: 46px;
  height: 40px;
  padding: 0 10px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--tint-purple);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: .95rem;
}
[data-theme="dark"] .fn-item .fn-key { color: var(--primary-light); }
.fn-item span.fn-desc { font-size: .88rem; color: var(--muted); }

/* -------------------------------------------------------------- FAQ */
.faq-section { background: var(--bg); }

.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 34px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--heading);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary); }
.faq-ic {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform var(--transition), color var(--transition);
}
.faq-item[open] .faq-ic { transform: rotate(180deg); color: var(--primary); }

.faq-answer { padding: 0 20px 20px; }
.faq-answer p { color: var(--muted); font-size: .94rem; line-height: 1.7; margin: 0; }

/* =============================== RESPONSIVE ============================= */
@media (max-width: 520px) {
  .faq-item summary { font-size: .94rem; padding: 15px 16px; }
  .faq-answer { padding: 0 16px 16px; }
}
