/* ============================================================
   story-rich.css — rich editorial content blocks per calculator
   ============================================================ */

.applet-story--rich {
  padding-top: 24px;
}

.story-body {
  margin: 0 0 14px;
  font-size: .875rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.story-heading {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin: 22px 0 10px;
  opacity: .7;
}

.story-interpret {
  margin: 0 0 6px;
  padding: 0 0 0 0;
  list-style: none;
}

.story-interpret li {
  font-size: .83rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 7px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}

.story-interpret li:last-child { margin-bottom: 0; }

.story-tips {
  margin: 0 0 6px;
  padding: 0 0 0 20px;
}

.story-tips li {
  font-size: .83rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.story-tips li:last-child { margin-bottom: 0; }

.story-faq {
  margin: 0;
}

.story-faq-item {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.story-faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.story-q {
  margin: 0 0 4px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.story-a {
  margin: 0;
  font-size: .83rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.story-cta {
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .83rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.story-cta-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin: 0 4px;
}

.story-cta-link:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.story-cta-note {
  opacity: .75;
  font-size: .78rem;
}

/* Blog / article page styles */
.blog-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.blog-header {
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--border);
}

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-decoration: none;
}

.blog-back:hover { color: var(--accent); text-decoration: none; }

.blog-header h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  line-height: 1.3;
  font-weight: 800;
  color: var(--text);
}

.blog-meta {
  font-size: .875rem;
  color: var(--text-muted);
}

.blog-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text);
}

.blog-body p {
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 16px;
}

.blog-body ul, .blog-body ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

.blog-body li {
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 8px;
}

.blog-body strong { color: var(--text); }

.blog-cta-box {
  margin: 32px 0;
  padding: 20px 22px;
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  font-size: .9rem;
  line-height: 1.6;
}

.blog-cta-box a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.blog-cta-box a:hover { text-decoration: underline; }

.blog-index-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.blog-card {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  display: block;
  transition: border-color .15s, box-shadow .15s;
}

.blog-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 16px rgba(0,0,0,.1);
  text-decoration: none;
}

.blog-card-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: 8px;
}

.blog-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.4;
}

.blog-card p {
  font-size: .85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.blog-card-meta {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 10px;
}
