/* Portfix Infosenter Design */

.pid {
	--pid-accent: #c2410c;
	--pid-accent-hover: #9a3412;
	--pid-ink: #15191f;
	--pid-muted: #4b5563;
	--pid-soft: #6b7280;
	--pid-line: #e3e6eb;
	--pid-bg: #f4f5f7;
	--pid-dark: #15191f;
	--pid-dark-2: #232932;
	--pid-radius: 14px;
	background: var(--pid-bg);
	color: var(--pid-ink);
	line-height: 1.55;
	padding-bottom: 8px;
}
.pid *, .pid *::before, .pid *::after { box-sizing: border-box; }
.pid [hidden] { display: none !important; }
.pid a { text-decoration: none; }

/* Kategorifarger: tint = lys flate, solid = ikon/flate, ink = tekst på tint */
.pid-c-orange { --pid-tint: #ffedd5; --pid-solid: #c2410c; --pid-tink: #7c2d12; }
.pid-c-blue   { --pid-tint: #dbeafe; --pid-solid: #1d4ed8; --pid-tink: #1e3a8a; }
.pid-c-teal   { --pid-tint: #ccfbf1; --pid-solid: #0f766e; --pid-tink: #134e4a; }
.pid-c-purple { --pid-tint: #ede9fe; --pid-solid: #6d28d9; --pid-tink: #4c1d95; }
.pid-c-green  { --pid-tint: #dcfce7; --pid-solid: #15803d; --pid-tink: #14532d; }
.pid-c-red    { --pid-tint: #fee2e2; --pid-solid: #b91c1c; --pid-tink: #7f1d1d; }
.pid-c-slate  { --pid-tint: #e5e7eb; --pid-solid: #374151; --pid-tink: #1f2937; }

.pid-wrap { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.pid-section { padding-top: 56px; }
.pid-section--last { padding-bottom: 64px; }
.pid-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 20px; }
.pid-section-head .pid-h2 { margin: 0; }

.pid-h1 { margin: 0; font-size: clamp(32px, 5vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; color: inherit; }
.pid-h2 { margin: 0 0 20px; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; color: inherit; }
.pid-lead { margin: 0; font-size: 19px; }
.pid-muted { margin: 0; color: var(--pid-muted); }
.pid-more { color: var(--pid-accent); font-weight: 700; }
.pid-more:hover { color: var(--pid-accent-hover); }

.pid-eyebrow { display: block; font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #fdba74; }
.pid-eyebrow--dark { color: var(--pid-accent); margin-bottom: 6px; }

.pid-tag { display: inline-block; align-self: flex-start; background: var(--pid-tint, #e5e7eb); color: var(--pid-solid, #374151); font-weight: 700; font-size: 12px; line-height: 1.4; padding: 4px 10px; border-radius: 999px; }

.pid-grid { display: grid; gap: 18px; }
.pid-grid--cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.pid-grid--three { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pid-grid--cats { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pid-grid--wizard { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 22px; }

/* Hero */
.pid-hero { background: var(--pid-dark); color: #fff; }
.pid-hero-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 96px; }
.pid-hero-text { display: flex; flex-direction: column; gap: 18px; max-width: 600px; }
.pid-hero .pid-lead { color: #c9cfd8; }
.pid-hero-media img { display: block; width: 100%; height: 380px; object-fit: cover; border-radius: 16px; }
.pid-hero--small { background: var(--pid-tint); color: var(--pid-ink); }
.pid-hero--small .pid-wrap { padding-top: 28px; padding-bottom: 40px; }
.pid-hero--small .pid-lead { color: var(--pid-tink); margin-top: 8px; }
.pid-cathead { display: flex; align-items: center; gap: 20px; margin-top: 18px; }

.pid-search { display: flex; flex-direction: column; gap: 6px; }
.pid-search label { font-size: 14px; font-weight: 600; color: #c9cfd8; }
.pid-search input { width: 100%; height: 54px; padding: 0 18px; border: 0; border-radius: 10px; font-size: 17px; font-family: inherit; color: var(--pid-ink); background: #fff; }
.pid-search input:focus { outline: 3px solid #fdba74; outline-offset: 2px; }

/* Brødsmuler */
.pid-crumbs { font-size: 15px; color: var(--pid-soft); display: flex; flex-wrap: wrap; gap: 8px; }
.pid-crumbs a { color: var(--pid-soft); text-decoration: underline; text-underline-offset: 2px; }

/* Veiviser */
.pid-wizard-wrap { margin-top: -56px; position: relative; }
.pid-wizard { background: #fff; border-radius: 16px; padding: clamp(22px, 4vw, 36px); box-shadow: 0 10px 30px rgba(21, 25, 31, 0.1); }
.pid-wizard .pid-h2 { margin-bottom: 6px; }
.pid-wiz { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 76px; border: 1px solid var(--pid-line); border-radius: 12px; color: var(--pid-ink); background: #fff; transition: border-color .15s, transform .15s; }
.pid-wiz:hover { border-color: var(--pid-solid); transform: translateY(-1px); color: var(--pid-ink); }
.pid-wiz-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--pid-tint); color: var(--pid-solid); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pid-wiz-text { display: flex; flex-direction: column; }
.pid-wiz-label { font-weight: 700; line-height: 1.3; }
.pid-wiz-sub { font-size: 14px; color: var(--pid-soft); }
.pid-wiz--warn { background: #fef2f2; border-color: #fecaca; }
.pid-wiz--warn .pid-wiz-sub { color: #b91c1c; }

/* Aktuelt nå */
.pid-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); background: #fff; border-radius: 16px; overflow: hidden; }
.pid-feature-media { min-height: 280px; background: var(--pid-tint); position: relative; }
.pid-feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pid-feature-body { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.pid-feature-body .pid-h2 { margin: 0; }

.pid-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.pid-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 10px; font-weight: 700; }
.pid-btn--accent { background: var(--pid-accent); color: #fff; }
.pid-btn--accent:hover { background: var(--pid-accent-hover); color: #fff; }
.pid-btn--ghost { background: #fff; color: var(--pid-ink); border: 1px solid #cbd2db; }
.pid-btn--ghost:hover { border-color: var(--pid-ink); color: var(--pid-ink); }

/* Kategorier */
.pid-cat { background: var(--pid-tint); border-radius: var(--pid-radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--pid-ink); transition: transform .15s; }
.pid-cat:hover { transform: translateY(-2px); color: var(--pid-ink); }
.pid-cat-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--pid-solid); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; flex-shrink: 0; }
.pid-cat-icon--lg { width: 64px; height: 64px; border-radius: 14px; }
.pid-cat-icon--lg svg { width: 30px; height: 30px; }
.pid-cat-name { font-weight: 800; font-size: 19px; line-height: 1.25; }
.pid-cat-desc { font-size: 15px; color: var(--pid-tink); }
.pid-cat-count { font-size: 14px; font-weight: 700; color: var(--pid-solid); margin-top: auto; }

/* Artikkelkort */
.pid-card { background: #fff; border-radius: var(--pid-radius); overflow: hidden; display: flex; flex-direction: column; color: var(--pid-ink); transition: transform .15s, box-shadow .15s; }
.pid-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(21, 25, 31, 0.08); color: var(--pid-ink); }
.pid-card-media { display: block; aspect-ratio: 16 / 10; background: var(--pid-tint); overflow: hidden; }
.pid-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pid-card-noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--pid-solid); }
.pid-card-noimg svg { width: 44px; height: 44px; opacity: .85; }
.pid-feature-media .pid-card-noimg { position: absolute; inset: 0; }
.pid-feature-media .pid-card-noimg svg { width: 72px; height: 72px; }
.pid-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pid-card-title { font-weight: 700; font-size: 18px; line-height: 1.3; }
.pid-card-time { font-size: 14px; color: var(--pid-soft); margin-top: auto; }

/* Søk */
.pid-results { padding-bottom: 24px; }
.pid-results-empty { margin: 0 0 16px; }

/* Hjelpeboks */
.pid-help { background: var(--pid-dark); color: #fff; border-radius: 18px; padding: clamp(24px, 4vw, 44px); margin-top: 8px; }
.pid-help-head { margin-bottom: 24px; }
.pid-help-head .pid-h2 { margin: 0 0 4px; color: #fff; }
.pid-help-head p { margin: 0; color: #c9cfd8; }
.pid-help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pid-help-card { background: var(--pid-dark-2); border-radius: var(--pid-radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; color: #fff; transition: transform .15s; }
.pid-help-card:hover { transform: translateY(-2px); color: #fff; }
.pid-help-card--accent { background: var(--pid-accent); }
.pid-help-title { font-weight: 800; font-size: 19px; }
.pid-help-text { font-size: 15px; color: #c9cfd8; }
.pid-help-card--accent .pid-help-text { color: #fff1e6; }
.pid-help-link { font-weight: 700; font-size: 15px; color: #fdba74; margin-top: auto; padding-top: 6px; }
.pid-help-card--accent .pid-help-link { color: #fff; }
.pid-help--compact { margin-top: 40px; }

/* Enkeltartikkel */
.pid-article { max-width: 860px; padding-top: 28px; padding-bottom: 64px; }
.pid-article-head { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 26px; }
.pid-article-head .pid-lead { color: var(--pid-muted); font-size: 20px; }
.pid-article-meta { margin: 0; font-size: 15px; color: var(--pid-soft); }
.pid-article-hero { margin: 0 0 28px; }
.pid-article-hero img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 16px; }
.pid-article-content { background: #fff; border-radius: 16px; padding: clamp(22px, 4vw, 40px); font-size: 18px; line-height: 1.7; }
.pid-article-content > *:first-child { margin-top: 0; }
.pid-article-content > *:last-child { margin-bottom: 0; }
.pid-article-content h2 { font-size: 26px; font-weight: 800; line-height: 1.25; margin: 1.6em 0 .5em; }
.pid-article-content h3 { font-size: 21px; font-weight: 700; line-height: 1.3; margin: 1.4em 0 .4em; }
.pid-article-content img { max-width: 100%; height: auto; border-radius: 12px; }
.pid-article-content a { color: var(--pid-accent); text-decoration: underline; text-underline-offset: 2px; }
.pid-article-content ol, .pid-article-content ul { padding-left: 1.3em; }
.pid-article-content li { margin-bottom: .4em; }
.pid-article-content ol li::marker { font-weight: 800; color: var(--pid-solid); }
.pid-article-content blockquote { margin: 1.5em 0; padding: 16px 20px; background: var(--pid-tint); border-radius: 12px; color: var(--pid-tink); }
.pid-tips { background: #fef3c7; color: #78350f; border-radius: 12px; padding: 16px 20px; margin: 1.5em 0; font-size: 17px; }
.pid-article .pi-products { margin-top: 40px; }
.pid-back { margin: 32px 0 0; }
.pid-back a { color: var(--pid-accent); font-weight: 700; }

.pid-pagination { margin-top: 28px; }

@media (max-width: 640px) {
	.pid-hero-inner { padding-top: 36px; padding-bottom: 84px; }
	.pid-hero-media img { height: 240px; }
	.pid-section { padding-top: 40px; }
	.pid-cathead { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	.pid-card, .pid-cat, .pid-wiz, .pid-help-card { transition: none; }
}
