/* Sajtmall för sidor som tidigare hade det mörka navet och den gamla sidfoten.
   Samma system som startsidan: ljust nav, Space Grotesk på rubriker,
   DM Sans i brödtext, ljus teal-yta och mörk centrerad sidfot.
   Laddas efter sidans egen <style> och vinner på högre specificitet. */

body.site {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #f8fafc;
  color: #1e293b;
}
body.site h1,
body.site h2,
body.site h3,
body.site .nav-logo-text {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
body.site h1,
body.site h2,
body.site p,
body.site li {
  overflow-wrap: break-word;
}

/* Navets grundmått. Sidorna som flyttades hit först (lisa, support m.fl.) bär
   samma mått i sin egen <style>; de elva som kom sist (priser, jamfor,
   bransch- och bytessidorna, guiderna) har inget eget nav alls och får måtten
   härifrån. :where() ger noll specificitet, så en sidas egna regler vinner
   alltid och inget ändras på de äldre sidorna. */
:where(body.site) :where(.nav .container) { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
:where(body.site) :where(.nav-inner) { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
:where(body.site) :where(.nav-logo) { display: flex; align-items: center; gap: 10px; }
:where(body.site) :where(.nav-logo-icon) { width: 38px; height: 38px; }
:where(body.site) :where(.nav-logo-icon img) { width: 100%; height: 100%; object-fit: contain; display: block; }
:where(body.site) :where(.nav-logo-text) { font-size: 20px; font-weight: 700; }
:where(body.site) :where(.nav-links) { display: none; align-items: center; gap: 28px; }
:where(body.site) :where(.nav-links a) { font-size: 14px; transition: color 0.2s; }
:where(body.site) :where(.nav-actions) { display: flex; align-items: center; gap: 14px; }
:where(body.site) :where(.nav-login) { font-size: 14px; font-weight: 500; white-space: nowrap; transition: color 0.2s; }
:where(body.site) :where(.nav-cta) { display: inline-block; padding: 8px 20px; font-size: 14px; font-weight: 600; white-space: nowrap; }
@media (min-width: 640px) { :where(body.site) :where(.nav .container) { padding: 0 24px; } }
@media (min-width: 768px) { :where(body.site) :where(.nav-links) { display: flex; } }
@media (max-width: 400px) {
  :where(body.site) :where(.nav-actions) { gap: 10px; }
  :where(body.site) :where(.nav-cta) { padding: 8px 14px; }
  :where(body.site) :where(.nav-logo-text) { display: none; }
}

body.site .nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #e2e8f0;
}
body.site .nav-logo-text { color: #0f172a; }
body.site .nav-links a { color: #64748b; }
body.site .nav-links a:hover { color: #0f172a; }
body.site .nav-login { color: #334155; }
body.site .nav-login:hover { color: #0f172a; }
body.site .nav-cta {
  background: linear-gradient(135deg, #115e59, #0f766e);
  color: #fff;
  border-radius: 12px;
}
body.site .nav-cta:hover { background: linear-gradient(135deg, #115e59, #0f766e); color: #fff; opacity: 0.92; }

body.site .page-hero {
  background: linear-gradient(160deg, #e6fffa 0%, #f0fdf9 30%, #f8fafc 65%);
  color: #0f172a;
}
body.site .page-hero h1 { color: #0f172a; }
body.site .page-hero p { color: #475569; }
body.site .page-hero-badge {
  /* Rubriketikett utan pillerform (2026-11-17, Andreas): ren versaltext som på startsidan. */
  display: block;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: #0f766e;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
body.site .back-link { color: #0f766e; }
body.site .back-link:hover { color: #115e59; }
body.site .page-hero-portrait { border-color: #14b8a6; }

/* /byt-fran-bygglet: heron var sidans enda mörka yta. */
body.site header.hero {
  background: linear-gradient(160deg, #e6fffa 0%, #f0fdf9 30%, #f8fafc 65%);
}
body.site header.hero h1,
body.site header.hero .lead,
body.site header.hero .fine,
body.site header.hero .fine a,
body.site header.hero .eyebrow { color: #0f172a; }
body.site header.hero .lead,
body.site header.hero .fine { color: #475569; }
body.site header.hero .eyebrow { color: #0f766e; }
body.site header.hero .fine a { color: #0f766e; font-weight: 700; }
body.site header.hero .btn-primary {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
}
body.site header.hero .btn-primary:hover { background: linear-gradient(135deg, #115e59, #0f766e); color: #fff; }

/* Centrerad hero på priser, jamfor, bytes- och branschsidorna och guiderna.
   Den var mörkt turkos med ljus text; nu samma ljusa teal-yta som .page-hero.
   Sidornas egna regler sätter mått och typografi, här byts bara färgerna. */
body.site div.hero {
  background: linear-gradient(160deg, #e6fffa 0%, #f0fdf9 30%, #f8fafc 65%);
}
body.site div.hero .hero-circle-1,
body.site div.hero .hero-circle-2 { display: none; }
body.site div.hero .hero-badge {
  /* Rubriketikett utan pillerform (2026-11-17, Andreas): ren versaltext som på startsidan. */
  display: block;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: #0f766e;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
body.site div.hero h1 { color: #0f172a; }
body.site div.hero p { color: #475569; }
body.site div.hero .answer {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155;
}
body.site div.hero .answer strong { color: #0f172a; }
body.site div.hero .btn-secondary {
  background: #fff;
  color: #334155;
  border-color: #cbd5e1;
}

.site-footer {
  background: #0a231f;
  color: #fff;
  text-align: center;
  padding: 64px 24px 40px;
}
.site-footer img { height: 56px; width: auto; filter: brightness(0) invert(1); }
.site-footer-tag {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.01em;
  margin: 22px 0 8px;
  line-height: 1.25;
}
.site-footer-tag span { color: #5eead4; }
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 28px auto 0;
  max-width: 880px;
  font-size: 14px;
}
.site-footer-links a { color: rgba(255, 255, 255, 0.62); text-decoration: none; }
.site-footer-links a:hover { color: #5eead4; }
.site-footer-meta {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}
.site-footer-meta a { color: rgba(255, 255, 255, 0.62); }
.site-footer-meta a:hover { color: #5eead4; }

/* Länkar i brödtext: #0d9488 mot sidans #f8fafc gav 3,57:1 (AA kräver 4,5). */
body.site .content-wrapper a { color: #0f766e; }
body.site .content-wrapper a:hover { color: #115e59; }

/* Tryckytor på mobil. "Logga in" i navet var 22 px hög och knappen 38 px;
   riktmärket är 44 px. Ytan växer med ett osynligt ::after i stället för med
   padding, så navets höjd och radens luft är oförändrade. Gäller alla
   navfamiljer som laddar den här filen (nav- och .logo/.btn-naven). */
@media (max-width: 767px) {
  .nav-logo,
  .nav-login,
  .nav-cta,
  .nav .logo,
  .nav-actions .btn,
  .mobile-menu-btn { position: relative; }
  .nav-logo::after,
  .nav-login::after,
  .nav-cta::after,
  .nav .logo::after,
  .nav-actions .btn::after,
  .mobile-menu-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 44px;
    min-height: 44px;
    transform: translate(-50%, -50%);
  }
  /* Länkarna i den utfällda mobilmenyn var 24 px höga. Padding med lika stor
     negativ marginal ger 44 px tryckyta utan att menyn blir längre. */
  .mobile-menu a { padding: 10px 0; margin: -10px 0; }
}
