/* Article bodies (FDKV5-70): the one stylesheet for how an inspiration article's
   text looks. Used by the article pages on www.foto.dk and by the admin's visual
   editor, which loads it from the website, so both show the same. Colours come
   from the site's variables (src/styles/global.css), with the same values as
   fallbacks for the admin, which doesn't have them. */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

.article-body { font-family: 'Quicksand', -apple-system, sans-serif; }

/* ── Article body typography ── */
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--dark, #2a2a2a);
}

/* Reset old float-based layouts imported from v4 content */
.article-body div[style*="float"] {
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
.article-body .clearfix { display: none; }

/* Headings */
.article-body h2 {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 3rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--sage, #e2e6e1);
  color: var(--dark, #2a2a2a);
}
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.6rem;
  color: var(--dark, #2a2a2a);
}
.article-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.4rem;
  color: var(--mid, #666);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Paragraphs and lists */
.article-body p { margin-bottom: 1.4rem; }
.article-body ul,
.article-body ol { margin: 0 0 1.4rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }

/* Images */
.article-body img {
  border-radius: 10px;
  margin: 2rem 0;
  width: 100%;
  height: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Links */
.article-body a {
  color: var(--red, #c30c15);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness 0.15s;
}
.article-body a:hover { text-decoration-thickness: 2px; }

/* Blockquote */
.article-body blockquote {
  background: var(--light, #f7f7f5);
  border-left: 4px solid var(--red, #c30c15);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  color: var(--dark, #2a2a2a);
  font-size: 1.05rem;
}
.article-body blockquote p:last-child { margin-bottom: 0; }

/* Inline elements */
.article-body strong { font-weight: 700; }
.article-body em { font-style: italic; }
.article-body code {
  background: var(--light, #f7f7f5);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  font-size: 0.87em;
}
.article-body hr {
  border: none;
  border-top: 2px solid var(--sage, #e2e6e1);
  margin: 2.5rem 0;
}

/* Tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.article-body thead { background: var(--dark, #2a2a2a); color: var(--white, #fff); }
.article-body th {
  padding: 0.85rem 1.1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.article-body td {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--sage, #e2e6e1);
  color: var(--dark, #2a2a2a);
}
.article-body td:not(:first-child),
.article-body th:not(:first-child) { text-align: center; }
.article-body tbody tr:last-child td { border-bottom: none; }
.article-body tbody tr:nth-child(even) { background: var(--light, #f7f7f5); }

/* Photo grids */
.article-body .photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}
.article-body .photo-grid.three { grid-template-columns: repeat(3, 1fr); }
.article-body .photo-grid.four  { grid-template-columns: repeat(2, 1fr); }
.article-body .photo-grid img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; border-radius: 8px;
  margin: 0; box-shadow: none;
}
.article-body .photo-caption {
  text-align: center; font-size: 0.85rem; color: var(--mid, #666);
  margin-top: -0.5rem; margin-bottom: 1.5rem; font-style: italic;
}

/* Floated image beside the text (FDKV5-68): ![alt](url "right") / "left".
   The next heading starts below it; on a phone it is an ordinary image. */
.article-body img.img-right,
.article-body img.img-left { width: 40%; margin-top: 0.4rem; margin-bottom: 1rem; }
.article-body img.img-right { float: right; margin-left: 1.5rem; }
.article-body img.img-left  { float: left;  margin-right: 1.5rem; }
.article-body h2, .article-body h3, .article-body .photo-grid,
.article-body table { clear: both; }
.article-body::after { content: ""; display: block; clear: both; }
@media (max-width: 700px) {
  .article-body img.img-right,
  .article-body img.img-left { float: none; width: 100%; margin: 1.5rem 0; }
}

/* Tip box */
.article-body .tip-box {
  background: var(--light, #f7f7f5);
  border-left: 4px solid var(--red, #c30c15);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.4rem;
  margin: 1.75rem 0;
}
.article-body .tip-box p { margin: 0; font-size: 0.98rem; }
.article-body .tip-box strong { color: var(--red, #c30c15); }

/* Numbered steps list */
.article-body .steps-list {
  list-style: none; margin: 1rem 0 1.5rem; padding: 0;
  counter-reset: step;
}
.article-body .steps-list li {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.75rem 0; border-bottom: 1px solid var(--sage, #e2e6e1);
  font-size: 0.98rem; line-height: 1.65; counter-increment: step;
}
.article-body .steps-list li::before {
  content: counter(step);
  min-width: 28px; height: 28px; background: var(--red, #c30c15); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}

/* CTA box inside article */
.article-body .article-cta {
  background: var(--light, #f7f7f5);
  border-radius: 14px;
  padding: 2.25rem 2rem;
  text-align: center;
  margin: 3rem 0;
  border: 1px solid var(--sage, #e2e6e1);
}
.article-body .article-cta h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; border: none; margin-top: 0; }
.article-body .article-cta p  { color: var(--mid, #666); font-size: 0.98rem; margin-bottom: 1.5rem; }
.article-body .btn-red {
  background: var(--red, #c30c15); color: var(--white, #fff);
  padding: 0.8rem 2rem; border-radius: 6px;
  font-weight: 700; font-size: 0.95rem; display: inline-block;
  transition: background 0.2s;
}
.article-body .btn-red:hover { background: #a00a11; }

@media (max-width: 640px) {
  .article-body .photo-grid,
  .article-body .photo-grid.three,
  .article-body .photo-grid.four { grid-template-columns: 1fr; }
}
