h1, h2, h3, h4, h5, h6 {
  color: #075b2f;
}

/* ======== KUNSKAPSSIDA — GRUNDLAYOUT ======== */

.knowledge-page { padding-bottom: 4rem; }

.knowledge-hero {
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.knowledge-hero__title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.knowledge-hero__intro {
    max-width: 600px;
    line-height: 1.6;
}

/* ======== GRID ======== */
.knowledge-grid {
    margin-top: 3rem;
}
.knowledge-grid__heading {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

.knowledge-grid__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Desktop 2 kolumner */
@media (min-width: 700px) {
    .knowledge-grid__list {
    grid-template-columns: repeat(2, 1fr);
    }
}

/* Större desktop 3 kolumner */
@media (min-width: 1100px) {
    .knowledge-grid__list {
    grid-template-columns: repeat(3, 1fr);
    }
}

/* ======== KORT ======== */
.knowledge-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform .2s ease;
}
.knowledge-card:hover {
    transform: translateY(-4px);
}

.knowledge-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.knowledge-card__image-wrapper {
    width: 100%;
    overflow: hidden;
}

.knowledge-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.knowledge-card__body {
    padding: 1rem 1.2rem;
}
.knowledge-card__title {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}
.knowledge-card__excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
}
 

/* =================================
   ARTIKLAR – GRUNDSTRUKTUR
================================= */

.knowledge-article {
    max-width: 760px;

    padding-top: 1rem;
}

.knowledge-article__section {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #d9d9d9;
}

.knowledge-article__section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
/* =================================
   TYPOGRAFI
================================= */

.knowledge-article h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.knowledge-article h2 {
    font-size: 1.7rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.knowledge-article h3 {
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.knowledge-article p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.knowledge-article ul {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
}

.knowledge-article li {
    margin-bottom: 0.45rem;
    line-height: 1.6;
}

.knowledge-article a {
  text-decoration: underline;
}


/* =================================
   ARTIKEL – TYPOGRAFI OVERRIDE
   (tar kontroll över styles.css)
================================= */

.knowledge-article {
    max-width: 760px;

    padding-top: 1rem;
}

/* ----- Sektioner ----- */

.knowledge-article__intro,
.knowledge-article__section {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #d9d9d9;
}

.knowledge-article__summary {
    border-bottom: none;
}

/* ----- Rubriker ----- */

.knowledge-article h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.knowledge-article h2 {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.knowledge-article h3 {
    font-size: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 0.7rem;
}

/* ----- Stycken ----- */

.knowledge-article p {
    max-width: none;        /* neutraliserar global p-regel */
    margin-bottom: 1.1rem;
    line-height: 1.75;
}

/* ----- Punktlistor ----- */

.knowledge-article ul {
    margin-top: 0.6rem;
    margin-bottom: 1.2rem;
    padding-left: 1.6rem;   /* skjuter in listan */
}

.knowledge-article li {
    margin-bottom: 0.5rem;
    line-height: 1.65;
}

/* =================================
   Kalkylblock
================================= */

.kalkyl-section {
  margin-top: 3rem;
}

.kalkyl-block {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #fafafa;
}

.kalkyl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem 1.25rem;
}

.kalkyl-field {
  display: flex;
  flex-direction: column;
}

.kalkyl-field label {
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.kalkyl-field input {
  padding: 0.75rem 0.9rem;
  border: 1px solid #bfc7cf;
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.kalkyl-field input:focus {
  outline: 2px solid rgba(0, 0, 0, 0.08);
  border-color: #7f8c99;
}

.kalkyl-actions {
  margin-top: 1.5rem;
}

.kalkyl-btn {
  padding: 0.85rem 1.4rem;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.kalkyl-results {
  margin-top: 2rem;
}

.kalkyl-results h3 {
  margin-bottom: 1rem;
}

.kalkyl-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem;
}

.kalkyl-result-card {
  padding: 1rem;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #fff;
}

.kalkyl-result-card--highlight {
  border-width: 2px;
}

.kalkyl-result-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.kalkyl-result-card strong {
  font-size: 1.2rem;
  line-height: 1.3;
}

@media (max-width: 700px) {
  .kalkyl-grid,
  .kalkyl-result-grid {
    grid-template-columns: 1fr;
  }

  .kalkyl-block {
    padding: 1rem;
  }
}