/* Artikel-oversigten (/artikler/): emnesektioner med SVG-ikoner.
   Markup bygges af _admin/tools/build-artikler.py. Tokens fra brand.css. */
.ax {
  --ax-tint-web: rgba(51,85,255,.14);
  --ax-tint-ads: rgba(255,92,138,.16);
  --ax-tint-seo: rgba(139,92,255,.16);
  --ax-tint-branche: rgba(255,181,71,.22);
  max-width: 1200px; margin: 0 auto; padding: 24px 24px clamp(96px, 11vw, 160px);
}

/* segmenteret kontrol med ikoner og antal */
.ax-bar { margin: 8px 0 clamp(40px, 5vw, 64px); }
.ax-seg { margin: 0; }
.ax-seg button { display: inline-flex; align-items: center; gap: 8px; }
.ax-tab-ico { display: inline-flex; }
.ax-tab-ico svg { width: 18px; height: 18px; }
.ax-n { font: 500 12px/1 var(--bn-mono); opacity: .55; margin-left: 2px; }

/* sektioner */
.ax .ax-sec { padding: 0; } /* styles.css giver alle <section> 64 px luft */
.ax-sec + .ax-sec { margin-top: clamp(64px, 8vw, 112px); }
.ax-sec[hidden] + .ax-sec, .ax-sec[hidden] { margin-top: 0; }
.ax-sec.ax-in { animation: ax-in .6s var(--bn-ease) both; }
@keyframes ax-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.ax-head { display: flex; align-items: center; gap: 20px; margin: 0 0 24px; padding: 0 0 24px; border-bottom: 1px solid var(--bn-line); }
.ax-ico { flex: none; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: var(--bn-ink); }
.ax-ico svg { width: 34px; height: 34px; }
.ax-sec--web .ax-ico { background: var(--ax-tint-web); }
.ax-sec--ads .ax-ico { background: var(--ax-tint-ads); }
.ax-sec--seo .ax-ico { background: var(--ax-tint-seo); }
.ax-sec--branche .ax-ico { background: var(--ax-tint-branche); }
.ax-head-txt { min-width: 0; }
.bn-article .ax-head h2 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; color: var(--bn-ink); }
.bn-article .ax-head p { margin: 6px 0 0; font-size: 17px; line-height: 1.45; color: var(--bn-ink2); }
.ax-count { margin-left: auto; align-self: flex-end; font: 500 12px/1 var(--bn-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--bn-faint); white-space: nowrap; }

/* kort */
.ax-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.ax-grid--sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px; }
.bn-article a.ax-card { display: flex; flex-direction: column; gap: 10px; background: var(--bn-surface); border-radius: 28px; padding: 28px; color: var(--bn-ink); text-decoration: none;
  transition: transform .5s var(--bn-ease), box-shadow .5s var(--bn-ease), background .5s var(--bn-ease); }
.bn-article a.ax-card:hover { background: #FFFFFF; transform: scale(1.02); box-shadow: 0 40px 80px -40px rgba(0,0,0,.35); }
.bn-article a.ax-card:active { transform: scale(.985); transition: transform 120ms ease-out; }
.bn-article a.ax-card:focus-visible { outline: 2px solid var(--bn-accent); outline-offset: 3px; }
.ax-card-ico { width: 44px; height: 44px; border-radius: 14px; background: #FFFFFF; color: var(--bn-ink); display: grid; place-items: center; margin-bottom: 8px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.04); transition: background .4s var(--bn-ease), color .4s var(--bn-ease); }
.ax-card-ico svg { width: 22px; height: 22px; }
.ax-card:hover .ax-card-ico { background: var(--bn-ink); color: #FFFFFF; }
.bn-article .ax-kind { font: 500 12px/1.2 var(--bn-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--bn-accent); }
.bn-article .ax-card h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; color: var(--bn-ink); }
.bn-article .ax-card p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--bn-ink2); }
.bn-article .ax-go { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--bn-accent); }
.ax-go svg { width: 16px; height: 16px; transition: transform .35s var(--bn-ease); }
.ax-card:hover .ax-go svg { transform: translateX(4px); }

/* branche-guides: mindre kort */
.bn-article a.ax-card--sm { padding: 22px; border-radius: 24px; gap: 8px; }
.ax-card--sm .ax-card-ico { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 6px; }
.ax-card--sm .ax-card-ico svg { width: 20px; height: 20px; }
.bn-article .ax-card--sm h3 { font-size: 18px; }
.bn-article .ax-card--sm p { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bn-article .ax-card--sm .ax-go { font-size: 14px; padding-top: 10px; }

@media (max-width: 600px) {
  .ax { padding-left: 16px; padding-right: 16px; }
  .ax-head { flex-wrap: wrap; gap: 14px; }
  .ax-ico { width: 52px; height: 52px; border-radius: 16px; }
  .ax-ico svg { width: 28px; height: 28px; }
  .ax-head-txt { flex: 1 1 200px; }
  .ax-count { display: none; }
  .bn-article a.ax-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ax-sec.ax-in { animation: none; }
  .bn-article a.ax-card, .ax-card-ico, .ax-go svg { transition: none; }
  .bn-article a.ax-card:hover { transform: none; }
}
