/* Tillegg til hoved-style-2.css (gjenbruker fargetokens --primary-color m.fl.,
   header/footer/menykomponenter derfra uendret). Alt under .info-page har sin
   egen cream/serif-stil hentet fra design-handoff for "Slik finner du fram",
   scopet slik at den ikke lekker inn i den gjenbrukte hovedside-headeren over. */

.info-page {
  --info-bg: #f2efe6;
  --info-header-bg: #f4f1e8;
  --info-border: #e4dfd2;
  --info-border-soft: #ece7da;
  --info-icon-bg: #eef0e7;
  --info-marker: #7a9a6f;

  font-family: "PT Sans", "Inter", sans-serif;
  background: var(--info-bg);
}

.info-page h1,
.info-page h2 {
  font-family: "PT Serif", Georgia, serif;
}

/* Intro */
.info-intro {
  background: var(--info-header-bg);
  border-bottom: 1px solid var(--info-border);
  padding: 44px 0 26px;
}

.info-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.info-intro h1 {
  font-size: 40px;
  line-height: 1.12;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 14px;
}

.info-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 700px;
}

/* Kortoversikt */
.info-overview {
  padding: 30px 0 8px;
}

.app-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.app-overview-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--info-border);
  border-radius: 13px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.app-overview-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 22px -14px rgba(30, 58, 39, 0.5);
  transform: translateY(-1px);
}

.app-overview-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--info-icon-bg);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-overview-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.app-overview-title {
  font-family: "PT Serif", Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--primary-color);
}

.app-overview-tagline {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.app-overview-arrow {
  align-self: center;
  color: var(--primary-light);
  font-size: 20px;
}

/* Detaljseksjoner */
.info-details {
  padding: 14px 0 56px;
}

.app-detail {
  scroll-margin-top: 90px;
  margin-top: 22px;
  padding: 30px 34px;
  background: #fff;
  border: 1px solid var(--info-border);
  border-radius: 15px;
}

.app-detail-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.app-detail-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--primary-color);
  color: #f2efe6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-detail-top h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-color);
  flex: 1;
}

.app-detail-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: #f2efe6;
  border-radius: 9px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.app-detail-cta:hover {
  background: var(--primary-dark);
}

.app-detail-lead {
  margin-top: 14px;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  max-width: 760px;
}

.app-detail-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.app-detail-shot {
  flex: 0 0 auto;
  width: 220px;
  margin: 0;
  background: #faf8f2;
  border: 1px solid var(--info-border);
  border-radius: 12px;
  overflow: hidden;
}

.app-detail-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.full-guide-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.full-guide-link .material-icons {
  font-size: 17px;
}

.app-detail-tips {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--info-border-soft);
}

.app-detail-tips-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.app-detail-tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-detail-tips-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.tip-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tip-title {
  color: var(--text-primary);
  font-size: 14.5px;
  line-height: 1.5;
}

.tip-marker {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  background: var(--info-marker);
  transform: rotate(45deg);
  border-radius: 1px;
}

.detail-group-heading {
  margin: 34px 0 0;
}

/* Footer */
.om-footer {
  background: var(--primary-dark);
}

.om-footer h3 {
  font-family: "PT Serif", Georgia, serif;
  font-size: 20px;
  margin-bottom: 10px;
}

.om-footer p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Responsive (samme brytningspunkt som resten av nettstedet) */
@media (max-width: 768px) {
  .info-intro h1 {
    font-size: 27px;
  }

  .info-lead {
    font-size: 15px;
  }

  .app-overview-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .app-overview-card {
    padding: 16px;
  }

  .app-detail {
    padding: 20px;
    border-radius: 14px;
  }

  .app-detail-icon {
    width: 44px;
    height: 44px;
  }

  .app-detail-top h2 {
    font-size: 20px;
  }

  .app-detail-cta {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 14px;
  }

  .app-detail-shot {
    width: calc(50% - 7px);
  }

  .app-detail-shot:only-child {
    width: min(280px, 100%);
  }
}

/*  Slik bruker du Salmeboka */

.sg {
  --sg-ink: #26221b;
  --sg-muted: #4d473e;
  --sg-line: #e4ded0;
  --sg-ring: #e8cd93;
  --sg-paper: #f6f3ec;
  position: relative;
  max-width: 1180px;
  margin: 2rem auto;
  color: var(--sg-ink);
}
.sg h3 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}
.sg-lead {
  margin: 0 0 1.5rem;
  color: var(--sg-muted);
}

/* Skjermbilde med nummer */
.sg-figure {
  box-sizing: border-box;
  position: relative;
  width: min(100%, 400px);
  margin: 0 auto;
  border: 8px solid #1d1a16;
  border-radius: 34px;
  overflow: hidden;
  background: #1d1a16;
  box-shadow: 0 14px 36px rgba(38, 34, 27, 0.2);
  z-index: 1;
}
.sg-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}

.sg-badge {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 1.5rem;
  height: 1.5rem;
  margin: -0.75rem 0 0 -0.75rem;
  border-radius: 50%;
  background: var(--sg-ink);
  color: var(--sg-paper);
  box-shadow: 0 0 0 2px var(--sg-ring);
  display: grid;
  place-items: center;
  font:
    600 0.8rem/1 system-ui,
    sans-serif;
  z-index: 3;
}

/* Forklaringer */
.sg-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.sg-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sg-col,
.sg-sub {
  display: contents;
}
.sg-item {
  order: var(--n);
}
.sg-item {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--sg-line);
}
.sg-num {
  flex: none;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--sg-ink);
  color: var(--sg-paper);
  display: grid;
  place-items: center;
  font:
    600 0.85rem/1 system-ui,
    sans-serif;
}
.sg-item strong {
  display: block;
  margin: 0.15rem 0 0.2rem;
  font-size: 1.05rem;
}
.sg-item p {
  margin: 0;
  color: var(--sg-muted);
  line-height: 1.45;
}

.sg-lines {
  display: none;
}

/* PC: bilde i midten, forklaringer på hver side, streker mellom */
@media (min-width: 900px) {
  .sg-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px minmax(0, 1fr);
    column-gap: clamp(48px, 7vw, 110px);
    align-items: start;
  }
  .sg-figure {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
  }
  .sg-list {
    display: contents;
  } /* kolonnene blir egne celler i rutenettet */
  .sg-item {
    border-bottom: 0;
    padding: 0;
  }
  .sg-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    height: 100%;
    padding: 1rem 0 0;
  }
  .sg-col-left {
    grid-column: 1;
    grid-row: 1;
  }
  .sg-col-left .sg-item {
    flex-direction: row-reverse;
    text-align: right;
  } /* nummeret nærmest bildet */
  .sg-col-right {
    grid-column: 3;
    grid-row: 1;
    justify-content: flex-start;
    gap: 2.4rem;
  }

  .sg-lines {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 2;
  }
  .sg-lines line {
    stroke-linecap: round;
  }
  .sg-lines .halo {
    stroke: var(--sg-paper);
    stroke-width: 5;
  }
  .sg-lines .ink {
    stroke: var(--sg-ink);
    stroke-width: 1.5;
  }
}
