/* ══════════════════════════════════════════════════════════════
   TOOL TEMPLATE — shared structure for all QuantBase tool pages
   Include after style_B.css on every tool page.
   ══════════════════════════════════════════════════════════════ */

/* ── Hero body text ─────────────────────────────────────────── */
.page-hero .tool-intro-body {
  margin: 16px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}
.page-hero .tool-intro-body + .tool-intro-body {
  margin-top: 10px;
}

/* ── Feature chips ──────────────────────────────────────────── */
.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Section label (reused from guides) ─────────────────────── */
.tool-section-label {
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 0 0 16px;
}

/* ── "Hvornår er dette relevant?" ───────────────────────────── */
.tool-when {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
}
.tool-when-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
}
.tool-when-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tool-when-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}
.tool-when-list li::before {
  content: '→';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Output explanation grid ────────────────────────────────── */
.tool-explain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .tool-explain-grid { grid-template-columns: 1fr; }
}
.tool-explain-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.tool-explain-item-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 7px;
}
.tool-explain-item-body {
  font-size: 0.80rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Formueplan CTA ─────────────────────────────────────────── */
.tool-next {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 14px;
  padding: 26px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.tool-next-text {}
.tool-next-eyebrow {
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--primary);
  margin: 0 0 8px;
}
.tool-next-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.25;
}
.tool-next-body {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  max-width: 480px;
}
.tool-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--primary);
  color: #1a1f2e;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
  align-self: center;
}
.tool-next-btn:hover { opacity: 0.88; }

/* ── Related Q&A ────────────────────────────────────────────── */
.tool-qa-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tool-qa-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.tool-qa-list li a:hover {
  border-color: rgba(201,168,76,0.4);
  color: var(--text);
  background: rgba(201,168,76,0.03);
}
.tool-qa-list li a::before {
  content: '?';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Metode / antagelser (collapsed) ────────────────────────── */
.tool-method {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.tool-method summary {
  cursor: pointer;
  padding: 14px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.tool-method summary::-webkit-details-marker { display: none; }
.tool-method summary::before {
  content: '▶';
  font-size: 0.65rem;
  color: var(--muted);
  transition: transform 0.2s;
}
.tool-method[open] summary::before { transform: rotate(90deg); }
.tool-method-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
}
.tool-method-body ul {
  margin: 14px 0 0;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.tool-method-body li {
  font-size: 0.80rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Disclaimer box ─────────────────────────────────────────── */
.tool-disclaimer {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

/* ── Spacing utility ────────────────────────────────────────── */
.tool-tpl-section {
  margin-bottom: 14px;
}
