/* ============================================================================
 * Markedsmateriell.no — Blog POST CONTENT styling  (v2 — unique prefixed)
 * ----------------------------------------------------------------------------
 * Every class is prefixed "mmpost-" and scoped under .mmpost so it can NEVER
 * collide with product/Elementor/theme classes (the old .mm-card clashed with
 * a product stylesheet — fixed by unique naming).
 *
 * INSTALL:
 *   1. Replace the old file at:
 *      <astra-child>/assets/mm-post.css   (C:\fenil\temp\Ole B\assets\mm-post.css)
 *   2. Already enqueued in inc/mm-blog.php (same filename) — no change needed.
 *   3. Wrap every post body in <div class="mmpost"> ... </div>
 *   4. Clear cache.
 *
 * Design rules (locked):
 *   - Light only. No black / navy / dark-blue backgrounds.
 *   - One accent = brand blue #0084D6. Orange gradient only on buttons.
 *   - Clean, editorial, professional. No coloured heading left-borders.
 * ==========================================================================*/

/* ---- Wrapper + tokens ---- */
.mmpost{
  --mm-blue:#0084D6;
  --mm-blue-dark:#00598f;
  --mm-ink:#181F25;
  --mm-muted:#5a6470;
  --mm-bg:#F5F9FC;
  --mm-border:#D3D3D3;
  --mm-line:#E3E8ED;
  --mm-btn:var( --e-global-color-ddf6cad );

  max-width:820px;
  margin:0 auto;
  color:var(--mm-ink);
  line-height:1.75;
  font-family:inherit;
}

/* ---- Text ---- */
.mmpost p{ margin:0 0 16px; }
.mmpost strong{ color:var(--mm-ink); }
.mmpost a{ color:var(--mm-blue); text-decoration:none; font-weight:600; }
.mmpost a:hover{ text-decoration:underline; }

.mmpost .mmpost-lead{ font-size:1.1rem; }
.mmpost .mmpost-note{ color:var(--mm-muted); font-style:italic; }
.mmpost .mmpost-muted{ color:var(--mm-muted); }
.mmpost .mmpost-spacer{ margin-bottom:44px; }

/* ---- Eyebrow label ---- */
.mmpost .mmpost-eyebrow{
  color:var(--mm-blue);
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:.8rem;
  margin:0 0 14px;
}

/* ---- Section titles + underline bar ---- */
.mmpost .mmpost-h2{
  font-size:clamp(1.4rem,3.5vw,1.7rem);
  font-weight:700;
  color:var(--mm-ink);
  margin:0 0 6px;
  line-height:1.25;
}
.mmpost .mmpost-h2::after{
  content:"";
  display:block;
  width:48px;
  height:3px;
  background:var(--mm-blue);
  border-radius:2px;
  margin:10px 0 24px;
}
.mmpost .mmpost-h3{
  font-size:1.05rem;
  font-weight:700;
  color:var(--mm-ink);
  margin:0 0 6px;
}

/* ---- Optional in-content hero ---- */
.mmpost .mmpost-hero{
  background:var(--mm-bg);
  border:1px solid var(--mm-border);
  border-radius:12px;
  padding:clamp(28px,5vw,48px);
  margin-bottom:40px;
}
.mmpost .mmpost-hero-title{
  font-size:clamp(1.7rem,4.5vw,2.2rem);
  font-weight:700;
  line-height:1.22;
  margin:0 0 16px;
}
.mmpost .mmpost-hero-sub{ color:var(--mm-muted); font-size:1.1rem; margin:0; max-width:640px; }

/* ---- Images ---- */
.mmpost .mmpost-img{
  width:100%;
  height:auto;
  border-radius:12px;
  display:block;
  margin:0 0 44px;
}
.mmpost .mmpost-img--tight{ margin-bottom:12px; }
.mmpost .mmpost-caption{ color:var(--mm-blue); font-size:.95rem; font-weight:600; margin:0 0 24px; }

/* ---- Tables ---- */
.mmpost .mmpost-table-wrap{
  overflow-x:auto;
  margin-bottom:44px;
  border:1px solid var(--mm-border);
  border-radius:12px;
}
.mmpost .mmpost-table{
  width:100%;
  border-collapse:collapse;
  min-width:480px;
  font-size:.95rem;
  margin-bottom: 0;
}
.mmpost .mmpost-table thead tr{ background:var(--mm-blue); color:#fff; }
.mmpost .mmpost-table th{ padding:14px 18px; text-align:left; font-weight:600; }
.mmpost .mmpost-table td{ padding:13px 18px; color:var(--mm-muted); }
.mmpost .mmpost-table td:first-child{ color:var(--mm-ink); font-weight:600; }
.mmpost .mmpost-table tbody tr{ border-top:1px solid var(--mm-line); }
.mmpost .mmpost-table tbody tr:nth-child(even){ background:var(--mm-bg); }
.mmpost .mmpost-table th.mmpost-feat{ background:var(--mm-blue-dark); font-weight:700; }
.mmpost .mmpost-table td.mmpost-feat{ background:var(--mm-bg); color:var(--mm-ink); font-weight:700; }
.mmpost .mmpost-table .mmpost-pos{ color:var(--mm-blue); font-weight:600; }

/* ---- Card grid ---- */
.mmpost .mmpost-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
  margin-bottom:44px;
}
.mmpost .mmpost-cards--3{ grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.mmpost .mmpost-card{
  display:block;                /* stack content; immune to any flex from elsewhere */
  border:1px solid var(--mm-border);
  border-radius:10px;
  padding:20px 22px;
  margin: 20px 0;
}
.mmpost .mmpost-card-title{ display:block; color:var(--mm-ink) !important; font-weight:700; margin:0 0 6px; }
.mmpost .mmpost-card-title--blue{ color:var(--mm-blue); font-size:1.05rem; }
.mmpost .mmpost-card p{ color:var(--mm-muted); font-size:.95rem; line-height:1.6; margin:0; }
.mmpost .mmpost-card--bullet{ color:var(--mm-muted); }
.mmpost .mmpost-card--bullet .mmpost-mark{ color:var(--mm-blue); font-weight:bold; margin-right:8px; }

/* ---- Lists ---- */
.mmpost .mmpost-list{ list-style:none; padding:0; margin:0 0 16px; color:var(--mm-muted); }
.mmpost .mmpost-list li{ padding:7px 0;margin: 0; }
.mmpost .mmpost-list .mmpost-mark{ color:var(--mm-blue); font-weight:bold; margin-right:8px; }

/* ---- Bordered panel ---- */
.mmpost .mmpost-panel{
  border:1px solid var(--mm-border);
  border-radius:12px;
  padding:clamp(22px,4vw,30px);
  margin-bottom:44px;
}

/* ---- Numbered steps ---- */
.mmpost .mmpost-step{ display:flex; gap:14px; align-items:flex-start; margin-bottom:12px; }
.mmpost .mmpost-step:last-child{ margin-bottom:0; }
.mmpost .mmpost-step-num{
  background:var(--mm-blue); color:#fff; font-weight:700;
  width:26px; height:26px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  flex-shrink:0; font-size:.9rem;
}
.mmpost .mmpost-step p{ margin:2px 0 0; color:var(--mm-muted); }

/* ---- FAQ accordion ---- */
.mmpost .mmpost-faq{ margin-bottom:44px; }
.mmpost .mmpost-faq details{
  border:1px solid var(--mm-border);
  border-radius:10px;
  margin-bottom:10px;
  overflow:hidden;
}
.mmpost .mmpost-faq details:last-child{ margin-bottom:0; }
.mmpost .mmpost-faq summary{
  cursor:pointer;
  padding:18px 22px;
  font-weight:600;
  color:var(--mm-ink);
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.mmpost .mmpost-faq summary::-webkit-details-marker{ display:none; }
.mmpost .mmpost-faq summary::after{
  content:"+";
  color:var(--mm-blue);
  font-size:1.4rem;
  line-height:1;
  flex-shrink:0;
  transition:transform .2s ease;
}
.mmpost .mmpost-faq details[open] summary::after{ transform:rotate(45deg); }
.mmpost .mmpost-faq details[open] summary{ border-bottom:1px solid var(--mm-line); }
.mmpost .mmpost-faq .mmpost-faq-body{ padding:16px 22px 20px; color:var(--mm-muted); line-height:1.7; }

/* ---- CTA ---- */
.mmpost .mmpost-cta{
  background:var(--mm-bg);
  border:1px solid var(--mm-border);
  border-radius:12px;
  padding:clamp(28px,5vw,44px);
  text-align:center;
}
.mmpost .mmpost-cta-title{
  font-size:clamp(1.4rem,3.5vw,1.8rem);
  font-weight:700;
  color:var(--mm-ink);
  margin:0 0 14px;
}
.mmpost .mmpost-cta p{ color:var(--mm-muted); font-size:1.05rem; line-height:1.6; margin:0 0 28px; }

/* ---- Button ---- */
.mmpost .mmpost-btn{
  display:block;
  background:var(--mm-btn);
  color:#fff !important;
  padding:15px 38px;
  border-radius:8px;
  font-size:1.05rem;
  font-weight:700;
  text-decoration:none;
}
.mmpost .mmpost-btn:hover{ text-decoration:none; opacity:.95; }

/* ---- Product mini-card ---- */
.mmpost .mmpost-product{
  border:1px solid var(--mm-border);
  border-radius:12px;
  overflow:hidden;
  margin-bottom:44px;
}
.mmpost .mmpost-product img{ width:100%; height:auto; display:block; }
.mmpost .mmpost-product-body{ padding:clamp(24px,4vw,32px); }
.mmpost .mmpost-product-title{ font-size:1.3rem; font-weight:700; margin:0 0 12px; }