/* Snapprens: guidesiden (/guider) og selve guidene (article-template.php). November 2026.
   Farger og bredder følger resten av nettstedet (site-light.css og site-dimensions.css).
   Merk: site-no-borders.css skjuler alle kantlinjer, så linjer og «sømmer» her er tegnet med bakgrunn.
   Gjennomgangsmotivet er vaskelappen: den lille hvite lappen med søm som sitter på hvert bilde
   og rundt «Kort fortalt». */

.gx-index, .gx-article-page {
  --gx-ink: #1d232b; --gx-muted: #5b6470; --gx-navy: #15375e; --gx-blue: #1a8ef0;
  --gx-pale: #edf8fe; --gx-grey: #f5f6f8; --gx-line: #e4e7eb; --gx-sun: #ffd16b;
  --gx-stitch: repeating-linear-gradient(90deg, #15375e 0 5px, transparent 5px 9px);
}

body.snap-site main :is(.gx-top h1, .gx-feature h2, .gx-card h3, .gx-article-page .sp-hero h1) { text-wrap: balance; }

/* ---------- Vaskelappen ---------- */
.gx-label {
  position: absolute; left: 20px; bottom: 0; z-index: 1;
  padding: 13px 12px 8px; background: #fff var(--gx-stitch) left 10px top 6px / calc(100% - 20px) 1.5px no-repeat;
  color: var(--gx-navy); font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .01em;
  border-radius: 3px 3px 0 0;
}

/* ---------- Guidekort ---------- */
.gx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 32px); }
.gx-card { display: flex; flex-direction: column; color: var(--gx-ink); text-decoration: none; min-width: 0; }
.gx-card-media, .gx-feature-media { position: relative; display: block; overflow: hidden; background: var(--gx-grey); }
.gx-card-media { aspect-ratio: 4 / 3; border-radius: 20px; }
.gx-card-media img, .gx-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.gx-card:hover img, .gx-feature:hover img { transform: scale(1.035); }
.gx-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 4px 0; flex: 1; }
body.snap-site main .gx-card h3 { font-size: 21px !important; line-height: 1.25 !important; letter-spacing: -.015em !important; margin: 0 !important; color: var(--gx-ink) !important; font-weight: 700; }
.gx-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gx-card-text { color: var(--gx-muted); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gx-card-meta { margin-top: auto; padding-top: 4px; color: var(--gx-muted); font-size: 13px; font-weight: 600; }
.gx-card:focus-visible, .gx-feature:focus-visible { outline: 3px solid var(--gx-blue); outline-offset: 6px; border-radius: 20px; }

/* ---------- /guider: topp ---------- */
.gx-top { padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(28px, 3vw, 40px); }
body.snap-site main .gx-top h1 { color: var(--gx-ink) !important; margin: 0 0 16px !important; max-width: 16ch; }
.gx-top-lead { color: var(--gx-muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.4; margin: 0 0 28px; max-width: 46ch; }
.gx-topics { display: flex; flex-wrap: wrap; gap: 10px; }
.gx-topics a { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--gx-grey); color: var(--gx-ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.gx-topics a:hover { background: var(--gx-pale); color: var(--gx-navy); }
.gx-topics a span { color: var(--gx-muted); font-weight: 600; font-size: 13px; }

/* ---------- /guider: guiden som løftes frem ---------- */
.gx-lead-wrap { padding-bottom: clamp(40px, 5vw, 72px); }
.gx-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--gx-pale); border-radius: 28px; overflow: hidden; color: var(--gx-navy); text-decoration: none; }
.gx-feature-media { min-height: 380px; }
.gx-feature-media img { position: absolute; inset: 0; }
.gx-feature-body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(28px, 4vw, 56px); }
.gx-feature-now { font-size: 14px; font-weight: 700; color: var(--gx-navy); display: inline-flex; align-items: center; gap: 9px; }
.gx-feature-now::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--gx-sun); box-shadow: 0 0 0 4px #ffd16b55; }
body.snap-site main .gx-feature h2 { font-size: clamp(28px, 3vw, 40px) !important; line-height: 1.1 !important; letter-spacing: -.02em !important; margin: 0 !important; color: var(--gx-navy) !important; }
.gx-feature-text { font-size: 17px; line-height: 1.5; color: #2c4a6b; max-width: 44ch; }
.gx-feature-go { margin-top: 8px; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--gx-sun); color: #102e4a; font-weight: 700; font-size: 16px; }
.gx-feature-go small { font-weight: 600; font-size: 13px; opacity: .75; }
.gx-feature:hover .gx-feature-go { background: #ffdf95; }

/* ---------- /guider: temaene ---------- */
.gx-topic { padding-top: clamp(36px, 4vw, 56px); padding-bottom: clamp(36px, 4vw, 56px); background: linear-gradient(var(--gx-line), var(--gx-line)) top center / 100% 1px no-repeat; scroll-margin-top: 16px; }
.gx-topic > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px; margin-bottom: clamp(22px, 2.6vw, 34px); }
body.snap-site main .gx-topic > header h2 { font-size: clamp(26px, 2.6vw, 36px) !important; line-height: 1.15 !important; letter-spacing: -.02em !important; margin: 0 !important; color: var(--gx-ink) !important; }
.gx-topic > header p { margin: 0; color: var(--gx-muted); font-size: 16px; line-height: 1.45; }

/* ---------- Guiden: topp ---------- */
.gx-article-page .sp-hero .sp-hero-meta { margin-top: 24px; }
.gx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--gx-muted); font-size: 14px; font-weight: 600; }
.gx-meta a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--gx-pale); color: var(--gx-navy); text-decoration: none; font-weight: 700; }
.gx-meta a:hover { background: #dff1fd; }
body.snap-site main.gx-article-page .sp-hero h1 { font-size: clamp(34px, 4vw, 54px) !important; line-height: 1.08 !important; }

/* ---------- Guiden: innholdsliste + tekst ---------- */
.gx-layout { display: grid; grid-template-columns: 280px minmax(0, 720px); justify-content: space-between; gap: clamp(32px, 6vw, 96px); padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(32px, 4vw, 56px); background: linear-gradient(var(--gx-line), var(--gx-line)) top center / 100% 1px no-repeat; }
.gx-side { position: sticky; top: 24px; align-self: start; display: grid; gap: 22px; }
.gx-toc > p { margin: 0 0 12px; color: var(--gx-ink); font-size: 15px; font-weight: 700; }
.gx-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.gx-toc a { display: block; padding: 9px 14px; border-radius: 8px; color: var(--gx-muted); font-size: 15px; line-height: 1.35; font-weight: 500; text-decoration: none; }
.gx-toc a:hover { background: var(--gx-grey); color: var(--gx-ink); }
.gx-toc a[aria-current] { background: var(--gx-pale); color: var(--gx-navy); font-weight: 700; }
.gx-side-book { background: var(--gx-grey); border-radius: 16px; padding: 20px; display: grid; gap: 14px; }
.gx-side-book p { margin: 0; color: var(--gx-muted); font-size: 15px; line-height: 1.45; }
.gx-side-book p b { display: block; color: var(--gx-ink); font-size: 17px; line-height: 1.25; margin-bottom: 4px; }
body.snap-site main .gx-side-book .nh-button { width: 100%; min-height: 46px !important; padding: 0 16px !important; justify-content: center; font-size: 15px !important; }
.gx-side-link, .gx-end-link { color: var(--gx-blue) !important; font-size: 15px; font-weight: 700; text-decoration: none; text-align: center; }
.gx-side-link:hover, .gx-end-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.gx-prose { max-width: none !important; color: #3f4954; font-size: 18px; line-height: 1.7; min-width: 0; }
body.snap-site main .gx-prose h2 { font-size: clamp(24px, 2.4vw, 30px) !important; line-height: 1.2 !important; letter-spacing: -.015em !important; margin: 48px 0 14px !important; color: var(--gx-ink) !important; scroll-margin-top: 24px; }
body.snap-site main .gx-prose > h2:first-child { margin-top: 0 !important; }
body.snap-site main .gx-prose p, body.snap-site main .gx-prose li { font-size: 18px !important; line-height: 1.7 !important; }
body.snap-site main .gx-prose p { margin: 0 0 18px; max-width: none; }
.gx-prose a:not(.nh-button) { color: var(--gx-blue) !important; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gx-prose strong { color: var(--gx-ink); }

.gx-prose .gx-list, .gx-prose .gx-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.gx-prose .gx-list li { position: relative; padding-left: 26px; }
.gx-prose .gx-list li::before { content: ''; position: absolute; left: 4px; top: .68em; width: 8px; height: 8px; border-radius: 50%; background: var(--gx-blue); }
.gx-prose .gx-steps { counter-reset: gx; gap: 14px; }
.gx-prose .gx-steps li { counter-increment: gx; position: relative; padding-left: 50px; min-height: 34px; }
.gx-prose .gx-steps li::before { content: counter(gx); position: absolute; left: 0; top: -1px; width: 34px; height: 34px; border-radius: 50%; background: var(--gx-pale); color: var(--gx-navy); font-size: 15px; font-weight: 700; display: grid; place-items: center; }
body.snap-site main .gx-prose .gx-tip { background: #fff7e0; border-radius: 14px; padding: 18px 22px; margin: 26px 0; color: #3d3524; font-size: 17px !important; line-height: 1.6 !important; }
.gx-tip b { display: block; color: #102e4a; font-size: 14px; margin-bottom: 2px; }

/* «Kort fortalt» – en stor vaskelapp */
.gx-short { position: relative; background: var(--gx-pale) var(--gx-stitch) left 24px top 14px / calc(100% - 48px) 2px no-repeat; border-radius: 6px 6px 18px 18px; padding: 38px clamp(22px, 3vw, 32px) 26px; margin: 0 0 44px; }
body.snap-site main .gx-prose .gx-short h2 { font-size: 20px !important; margin: 0 0 14px !important; color: var(--gx-navy) !important; letter-spacing: 0 !important; }
.gx-short ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
body.snap-site main .gx-prose .gx-short li { position: relative; padding-left: 32px; color: var(--gx-navy); font-size: 17px !important; line-height: 1.5 !important; font-weight: 500; }
.gx-short li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2315375e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 10.3 3 3 6-6.4'/%3E%3C/svg%3E") center / 20px no-repeat; }

.gx-end { margin-top: 44px; padding-top: 28px; background: linear-gradient(var(--gx-line), var(--gx-line)) top left / 100% 1px no-repeat; }
body.snap-site main .gx-prose .gx-end p { margin: 0 0 16px; color: var(--gx-muted); }
.gx-end p b { color: var(--gx-ink); }
.gx-end p:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0 !important; }

/* ---------- «Les også» ---------- */
body.snap-site main .gx-more > h2 { margin-bottom: clamp(22px, 2.6vw, 34px) !important; }

/* ---------- Nettbrett og mobil ---------- */
@media (max-width: 1000px) {
  .gx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .gx-side { position: static; }
  .gx-side-book { display: none; }
  .gx-toc { background: var(--gx-grey); border-radius: 16px; padding: 18px 12px 12px; }
  .gx-toc > p { padding: 0 10px; }
  .gx-prose { max-width: 720px !important; }
  .gx-feature-media { min-height: 300px; }
}
@media (max-width: 700px) {
  .gx-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .gx-card-media { border-radius: 16px; aspect-ratio: 16 / 10; }
  .gx-feature { grid-template-columns: minmax(0, 1fr); border-radius: 16px; }
  .gx-feature-media { min-height: 0; aspect-ratio: 16 / 10; }
  .gx-feature-go { align-self: stretch; justify-content: center; }
  .gx-topics { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--sp-page-pad)); padding-inline: var(--sp-page-pad); scrollbar-width: none; }
  .gx-topics::-webkit-scrollbar { display: none; }
  .gx-topics a { flex: none; }
  .gx-topic > header { display: block; }
  .gx-topic > header p { margin-top: 6px; }
  body.snap-site main .gx-prose p, body.snap-site main .gx-prose li { font-size: 17px !important; }
  .gx-end p:last-child .nh-button { width: 100%; justify-content: center; }
  .gx-end-link { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .gx-card-media img, .gx-feature-media img { transition: none; } }
