/* Editor-only styles. NOT part of the real Gunilla Wigertz site.
   Kept in a separate file so public/assets/css/site.css stays byte-identical to the
   clean rebuilt scaffold. Only the editable demo pages (home, referenser, övning)
   load this file. Palette/variables below reuse the site's own CSS custom
   properties (--accent, --page-bg, --border, --text) where it helps them blend in. */

/* --- Top banner shown only on the editable demo pages --- */
.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 10px 18px;
  background: #222224;
  color: #fff;
  font-family: Verdana, "Open Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}
.demo-bar .demo-bar-text { opacity: 0.9; }
.demo-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.demo-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #a4cd39;
  color: #222224;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
}
.demo-btn:hover { background: #b6db5c; text-decoration: none; color: #222224; }
.demo-btn.secondary { background: #fff; color: #222224; border: 1px solid #a4cd39; }
.demo-btn.secondary:hover { background: #f3f8e4; }

/* --- Optional welcome image on the home intro (editable "Bild") --- */
.home-intro-bild {
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin: 0 auto 22px;
  border-radius: 8px;
}

/* --- Övningssidan (sample text page) width --- */
.ovning-inner {
  max-width: 820px;
}

/* --- Referenser/Feedback (editable testimonial list) --- */
.referens {
  clear: none;
  margin: 0 0 26px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: var(--page-bg);
}
.referens p { margin: 0 0 8px; }
.referens p:last-child { margin-bottom: 0; }
.referens-kalla { color: var(--muted); font-size: 0.95em; }
.referens-bild {
  display: block;
  width: min(100%, 240px);
  height: auto;
  margin: 0 0 12px;
  border-radius: 6px;
}

/* --- Sample-page style presets (safe, fixed; no free CSS for the editor) --- */
.stil-rubrik {
  color: var(--text);
  font-family: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.28;
  margin: 24px 0 12px;
}
.stil-underrubrik {
  color: var(--text);
  font-family: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin: 20px 0 10px;
}
.stil-normal { margin: 0 0 18px; }
.stil-markerad {
  font-weight: 600;
  background: var(--page-bg);
  border-left: 3px solid var(--border);
  padding: 10px 14px;
  margin: 0 0 18px;
}
.stil-diskret { font-size: 15px; color: var(--muted); margin: 0 0 18px; }

/* Colour presets (declared after the style presets so the colour wins). */
.farg-ockra { color: var(--accent); }
.farg-gron { color: #3f7652; }
.stil-markerad.farg-ockra { border-left-color: var(--accent); }
.stil-markerad.farg-gron { border-left-color: #3f7652; }
