/*
Theme Name: Krebreal
Theme URI: https://krebreal.no
Author: Krebreal Eiendom AS
Description: Tema for Krebreal Eiendom AS. Eiendommer med nabolag, nyheter, sider for leietakere og skjema for feilmelding til drift.
Version: 1.7.0
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: krebreal
*/

/* ---------- Fonter (lokale filer, ingen kall til Google) ---------- */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/newsreader-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300; font-display: swap; src: url("assets/fonts/newsreader-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/newsreader-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/newsreader-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }

/* ---------- Farger og grunnverdier ---------- */
:root {
	--rod: #671613;
	--rod-mork: #4A0F0D;
	--rod-dempet: #7A302F;
	--rod-lys: #F3E3E1;
	--rosa: #E7C3C0;
	--sort: #1D1D1B;
	--gra: #F2F1EF;
	--gra-2: #E6E3DE;
	--linje: #DCD9D4;
	--tekst-2: #4A4A46;
	--tekst-3: #5C5C57;
	--hvit: #FFFFFF;
	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--radius: 18px;
	--radius-lg: 24px;
	--pad: 24px;
	--maks: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--hvit);
	color: var(--sort);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--rod); text-underline-offset: 3px; }
a:hover { color: var(--rod-mork); }
:focus-visible { outline: 3px solid var(--rod); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; overflow-wrap: break-word; hyphens: manual; text-wrap: balance; }
.news-card-title, .post-title { overflow-wrap: break-word; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Robotfeltet skjules helt, så nettleserens autoutfylling ikke fyller det ut. */
.hp-field { display: none !important; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sort); color: var(--hvit); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: var(--hvit); }

.container { width: 100%; max-width: var(--maks); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.section-top { padding-top: clamp(28px, 4vw, 48px); }
.muted { color: var(--tekst-3); }
.small { font-size: 14px; color: var(--tekst-2); }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--tekst-2); }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }

/* ---------- Typografi ---------- */
.display, .h-display, .page-title, .article-title, .h-serif {
	font-family: var(--serif); font-weight: 300; letter-spacing: -0.015em;
}
.display { font-size: clamp(42px, 6.4vw, 92px); line-height: 1.02; }
.h-display { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.04; }
.h-serif { font-size: clamp(28px, 3vw, 42px); line-height: 1.08; }
.display em, .h-display em { font-style: italic; color: var(--rod); }
.h-small { font-size: 19px; font-weight: 700; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rod); text-decoration: none; }
.eyebrow-light { color: #D9A6A2; }
.link-strong { font-weight: 700; font-size: 15px; text-decoration: none; }

/* ---------- Knapper ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
	font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-rod { background: var(--rod); color: var(--hvit); }
.btn-rod:hover { background: var(--rod-mork); color: var(--hvit); }
.btn-mork { background: var(--sort); color: var(--hvit); }
.btn-mork:hover { background: #000; color: var(--hvit); }
.btn-outline { border-color: currentColor; color: var(--sort); background: transparent; }
.btn-outline:hover { background: var(--sort); color: var(--hvit); border-color: var(--sort); }
.btn-hvit { background: var(--hvit); color: var(--sort); }
.btn-hvit:hover { background: var(--rod-lys); color: var(--sort); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--rod-lys); color: var(--rod); font-size: 13px; font-weight: 700; }
.tag { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: var(--rod-lys); color: var(--rod); font-size: 12px; font-weight: 700; }

/* ---------- Toppfelt ---------- */
.site-header { position: relative; z-index: 50; background: var(--hvit); border-bottom: 1px solid #ECEAE6; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--sort); flex: none; }
.brand-logo { height: 46px; width: auto; }
.brand-slogan { font-size: 10px; font-weight: 500; line-height: 1.2; }
.nav-desktop { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
	width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--sort); cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.nav-toggle-bars { display: flex; flex-direction: column; gap: 5px; }
.nav-toggle-bars span { display: block; width: 20px; height: 2px; background: var(--hvit); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
	position: absolute; left: 0; right: 0; top: 100%; background: var(--hvit);
	border-bottom: 1px solid #ECEAE6; box-shadow: 0 18px 30px rgba(0, 0, 0, .12);
	max-height: calc(100vh - 80px); overflow-y: auto; padding-bottom: 24px;
}
.menu-mobile { list-style: none; margin: 0 0 18px; padding: 0; }
.menu-mobile li { border-bottom: 1px solid #ECEAE6; }
.menu-mobile a { display: block; padding: 12px 0; font-family: var(--serif); font-size: 28px; font-weight: 300; color: var(--sort); text-decoration: none; }
.menu-mobile .current-menu-item > a, .menu-mobile a[aria-current] { color: var(--rod); }

@media (max-width: 899px) {
	.header-fault { padding: 0 14px; }
}
/* «Meld fra til drift» på stor skjerm, «Meld fra» når det er trangt. */
.header-fault .fault-short { display: none; }
@media (max-width: 979px) {
	.header-fault .fault-long { display: none; }
	.header-fault .fault-short { display: inline; }
}
@media (min-width: 900px) {
	.header-inner { padding-top: 16px; padding-bottom: 16px; }
	.brand-logo { height: 58px; }
	.brand-slogan { font-size: 11px; }
	.nav-desktop { display: block; }
	.nav-desktop .menu { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
	.nav-desktop a { color: var(--sort); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
	.nav-desktop a:hover { color: var(--rod); }
	.nav-desktop .current-menu-item > a, .nav-desktop .current-menu-parent > a, .nav-desktop a[aria-current] { color: var(--rod); border-bottom-color: var(--rod); }
	.nav-toggle, .nav-mobile { display: none !important; }
	.header-actions { flex: none; }
}

/* ---------- Bilder og plassholdere ---------- */
.media-img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder {
	position: relative; display: block; width: 100%; height: 100%; min-height: 160px;
	background: linear-gradient(135deg, #D8D1C8, #E8E3DC);
}
.media-placeholder-mark {
	position: absolute; left: 50%; top: 50%; width: 64px; height: 50px; transform: translate(-50%, -50%);
	border: 7px solid rgba(103, 22, 19, .22); border-right: 0;
}
.media-placeholder-mark::before, .media-placeholder-mark::after {
	content: ""; position: absolute; right: 0; width: 7px; height: 12px; background: rgba(103, 22, 19, .22);
}
.media-placeholder-mark::before { top: -7px; }
.media-placeholder-mark::after { bottom: -7px; }

/* Logoens hakeparentes som ramme */
.bracket-frame {
	--b: clamp(10px, 1.2vw, 16px);
	position: relative; border: var(--b) solid var(--rod); border-right: 0;
	padding: calc(var(--b) + 4px) 0 calc(var(--b) + 4px) calc(var(--b) + 4px);
}
.bracket-frame::before, .bracket-frame::after {
	content: ""; position: absolute; right: 0; width: var(--b); height: 22%; background: var(--rod);
}
.bracket-frame::before { top: calc(var(--b) * -1); }
.bracket-frame::after { bottom: calc(var(--b) * -1); }
.bracket-frame > .media-img, .bracket-frame > .media-placeholder { border-radius: 16px; aspect-ratio: 4 / 3; }

/* ---------- Forside ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(36px, 6vw, 88px); padding-top: clamp(36px, 6vw, 96px); padding-bottom: clamp(36px, 5vw, 72px); }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-text .lead { max-width: 540px; }
.hero-media { flex: 1 1 380px; min-width: 0; }
.hero-graphic svg { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { padding: 20px 16px 22px 0; border-top: 1px solid var(--sort); display: flex; flex-direction: column; gap: 6px; }
.stat-value { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; color: var(--rod); }
.stat-pre { font-size: .5em; letter-spacing: .01em; }
.stat-label { font-size: 14px; color: var(--tekst-3); }

.entrances { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; padding-top: clamp(40px, 6vw, 80px); }
.entrance { border-radius: var(--radius-lg); padding: clamp(26px, 3.6vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.entrance-rod { background: var(--rod); color: var(--hvit); }
.entrance-gra { background: var(--gra); }
.entrance-main {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 58px; padding: 0 22px; border-radius: 16px; background: var(--hvit); color: var(--rod);
	font-weight: 700; font-size: 17px; text-decoration: none;
}
.entrance-main:hover { background: var(--rod-lys); color: var(--rod-mork); }
.chip-links { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-links a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
	border: 1.5px solid #B9726E; color: var(--hvit); text-decoration: none; font-weight: 600; font-size: 15px;
}
.chip-links a:hover { background: var(--rod-mork); }
.chip-links a.chip-strong { background: var(--rod-mork); border-color: var(--rod-mork); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 14px; }
.step-no {
	flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--hvit); color: var(--rod);
	font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center;
}

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; }
.section-head-tight { align-items: baseline; margin-bottom: 8px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
	min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--linje); background: var(--hvit);
	color: var(--sort); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
}
.filter-btn:hover { border-color: var(--rod); }
.filter-btn[aria-pressed="true"] { background: var(--rod); border-color: var(--rod); color: var(--hvit); }
.filter-status { margin: 0 0 22px; font-size: 15px; font-weight: 600; color: var(--tekst-3); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 28px 18px; }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.estate-card { display: flex; flex-direction: column; gap: 12px; color: var(--sort); text-decoration: none; }
.estate-card[hidden] { display: none; }
.estate-media { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--gra-2); }
.estate-media .media-img { transition: transform .3s ease; }
.estate-card:hover .media-img { transform: scale(1.03); }
.estate-body { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.estate-title { font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.estate-card:hover .estate-title { color: var(--rod); }
.estate-desc { font-size: 14px; color: var(--tekst-3); }

.callout {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	margin-top: 32px; padding: 22px 26px; border-radius: var(--radius); background: var(--gra); font-weight: 600;
}
.callout-strong { border-left: 6px solid var(--rod); border-radius: 0 var(--radius) var(--radius) 0; }

.featured { background: var(--sort); color: var(--hvit); }
.featured-inner { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
/* Gårdene ligger oppå hverandre, så høyden ikke hopper når de bytter. */
.featured-stack { display: grid; }
.featured-item {
	grid-area: 1 / 1; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 80px);
	visibility: hidden; opacity: 0; transition: opacity .6s ease, visibility 0s linear .6s;
}
.featured-item.is-active { visibility: visible; opacity: 1; transition: opacity .6s ease; }
.featured-media .media-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.featured-nav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.featured-nav[hidden] { display: none; }
.featured-btn {
	width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); background: none; color: var(--hvit);
	display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s;
}
.featured-btn:hover { background: var(--hvit); border-color: var(--hvit); color: var(--sort); }
.featured-btn:focus-visible { outline: 3px solid var(--hvit); outline-offset: 2px; }
.featured-btn .icon { width: 20px; height: 20px; }
.featured-btn[data-featured-prev] .icon { transform: rotate(180deg); }
.featured-btn:hover .slide-pause-icon { border-color: var(--sort); }
.featured-pause[aria-pressed="true"]:hover .slide-pause-icon { border-color: transparent transparent transparent var(--sort); }
.featured-count { min-width: 64px; text-align: center; font-size: 14px; font-weight: 600; color: #CFCBC6; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .featured-item, .featured-item.is-active { transition: none; } }
.featured-media { flex: 1 1 520px; min-width: 0; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; }
.featured-media .media-placeholder { background: linear-gradient(135deg, #3A3633, #57504A); }
.featured-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.featured-text p { color: #CFCBC6; }
.featured-text .btn { align-self: flex-start; }

.history { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 80px); }
.history-intro { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-self: flex-start; }
.history-intro p { color: var(--tekst-2); max-width: 360px; }
.timeline { flex: 2 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: clamp(16px, 3vw, 36px); padding: 16px 0; border-top: 1px solid var(--linje); }
.timeline-year { flex: 0 0 clamp(64px, 7vw, 100px); font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1; color: var(--rod); }
.timeline-text { flex: 1 1 auto; min-width: 0; padding-top: 4px; }

.news-band { background: var(--gra); }
.entrances + .news-band { margin-top: clamp(56px, 7vw, 104px); }
.news-band-inner { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.news-band > .container:not(.news-band-inner) { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.news-col { flex: 3 1 520px; min-width: 0; }
.news-list { display: flex; flex-direction: column; border-bottom: 1px solid #CFC9C1; }
.news-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px 24px; }
.news-cards .post-excerpt { font-size: 15px; color: var(--tekst-3); line-height: 1.5; }
.news-row {
	display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: baseline; padding: 18px 0;
	border-top: 1px solid #CFC9C1; color: var(--sort); text-decoration: none;
}
.news-date { flex: 0 0 130px; font-size: 13px; font-weight: 600; color: var(--tekst-3); }
.news-title { flex: 1 1 300px; font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.news-row:hover .news-title { color: var(--rod); }
.quote-card {
	flex: 2 1 320px; min-width: 0; border-radius: var(--radius-lg); background: var(--rod); color: var(--hvit);
	padding: clamp(26px, 3.6vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.quote-card p { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.2; margin: 0; }
.quote-card a { color: var(--hvit); font-weight: 700; font-size: 15px; }
/* Roterende sitater: alle ligger i samme rute, så høyden er den samme hele tiden. */
.quote-stack { display: grid; }
/* Det gamle sitatet tones ut før det nye tones inn, så tekstene aldri ligger oppå hverandre. */
.quote-item { grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.quote-item.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease .5s, visibility 0s; }
.quote-stack.is-init .quote-item { transition: none; }
.quote-item blockquote { margin: 0; }
.quote-card-rotate .quote-item p { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.3; }
.quote-item p::before { content: "«"; }
.quote-item p::after { content: "»"; }
.quote-item figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 15px; font-weight: 700; }
.quote-stars { color: #F6C54E; letter-spacing: 2px; font-size: 17px; }
@media (prefers-reduced-motion: reduce) { .quote-item { transition: none; } }

/* ---------- Undersider ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--rod); color: var(--hvit); }
.page-hero-inner { position: relative; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); padding-right: calc(var(--pad) + clamp(70px, 16vw, 230px)); display: flex; flex-direction: column; gap: 12px; }
.hero-bracket {
	--b: clamp(8px, 1.4vw, 20px);
	position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
	width: clamp(70px, 16vw, 230px); aspect-ratio: 13 / 10;
	border: var(--b) solid var(--rod-dempet); border-right: 0;
}
.hero-bracket::before, .hero-bracket::after { content: ""; position: absolute; right: 0; width: var(--b); height: 23%; background: var(--rod-dempet); }
.hero-bracket::before { top: calc(var(--b) * -1); }
.hero-bracket::after { bottom: calc(var(--b) * -1); }
.page-title { font-size: clamp(34px, 5vw, 60px); line-height: 1.05; }
.page-intro { font-size: clamp(17px, 1.6vw, 20px); color: #F6E7E6; max-width: 660px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: #F1E3E2; }
.crumbs a { color: var(--hvit); }
.crumbs-dark { color: var(--tekst-3); }
.crumbs-dark a { color: var(--rod); }

.entry-narrow { max-width: 820px; }
.entry-narrow-inline { max-width: 760px; margin-bottom: 40px; }
.with-sidebar { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: flex-start; }
.side-nav { flex: 1 1 250px; min-width: 0; display: flex; flex-direction: column; font-size: 15px; font-weight: 600; }
.side-nav-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tekst-3); padding: 0 0 10px 16px; }
.side-nav a { display: block; padding: 9px 16px; border-left: 4px solid #ECEAE6; color: var(--sort); text-decoration: none; }
.side-nav a:hover { border-left-color: var(--rod); color: var(--rod); }
.side-nav a[aria-current] { background: var(--rod-lys); border-left-color: var(--rod); color: var(--rod); }
.side-nav a.side-nav-fault { border-left-color: var(--rod); color: var(--rod); margin-bottom: 6px; }
.side-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 899px) {
	.side-nav { order: 2; flex-basis: 100%; }
}

.help-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 16px; }
.help-card {
	display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border-radius: var(--radius);
	background: var(--gra); color: var(--sort); text-decoration: none;
}
.help-card strong { font-size: 18px; }
.help-card span { color: var(--rod); font-weight: 600; }
.help-card-rod { background: var(--rod); color: var(--hvit); }
.help-card-rod span { color: var(--rosa); }
.help-card-rod:hover { background: var(--rod-mork); color: var(--hvit); }
.help-card-gra span:not(.link-strong) { color: var(--tekst-2); font-weight: 400; }

.fault-banner {
	display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; padding: clamp(24px, 3vw, 34px);
	border-radius: var(--radius-lg); background: var(--rod); color: var(--hvit); text-decoration: none; margin-bottom: clamp(40px, 5vw, 64px);
}
.fault-banner .icon { width: 40px; height: 40px; }
.fault-banner-text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 2px; }
.fault-banner-text strong { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.fault-banner-text span { color: #F1E3E2; }
.fault-banner:hover { background: var(--rod-mork); color: var(--hvit); }

.topic-group { margin-bottom: clamp(40px, 5vw, 64px); }
.topic-group-head { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.topic-group-head p { color: var(--tekst-2); margin: 0; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.topic-card {
	display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: var(--radius);
	background: var(--gra); color: var(--sort); text-decoration: none; border-left: 4px solid var(--rod);
}
.topic-card strong { font-size: 18px; }
.topic-card span { font-size: 15px; color: var(--tekst-2); }
.topic-card:hover strong { color: var(--rod); }

.with-aside { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: flex-start; }
.with-aside > :first-child { flex: 999 1 560px; min-width: 0; }
.aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.aside-block { display: flex; flex-direction: column; gap: 10px; }
.aside-links { display: flex; flex-direction: column; gap: 8px; }
.aside-links a { padding: 12px 16px; border-radius: 12px; background: var(--gra); border-left: 4px solid var(--rod); color: var(--sort); text-decoration: none; font-weight: 600; }
.aside-links a:hover { color: var(--rod); }
.aside-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.aside-line { padding-left: 16px; border-left: 4px solid var(--rod); gap: 2px; }
.fact-box, .cta-box { border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.fact-box { background: var(--gra); }
.fact-box dl, .contact-list { margin: 0; display: flex; flex-direction: column; }
.fact-box dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linje); }
.fact-box dl div:last-child { border-bottom: 0; }
.fact-box dt { color: var(--tekst-3); }
.fact-box dd { margin: 0; text-align: right; font-weight: 600; }
.cta-box { background: var(--rod); color: var(--hvit); }
.cta-box p { color: #F1E3E2; margin: 0; }
.cta-box a { color: var(--hvit); font-weight: 700; }
.contact-list div { padding: 0 0 0 16px; border-left: 4px solid var(--rod); margin-bottom: 16px; }
.contact-list dt { font-weight: 700; }
.contact-list dd { margin: 0; color: var(--tekst-2); }
.alert-box { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border-radius: var(--radius); background: var(--rod); color: var(--hvit); }
.alert-box a { color: var(--hvit); font-weight: 700; }
.alert {
	display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--rod-lys); border-left: 6px solid var(--rod); color: var(--rod-mork);
}
.alert .icon { width: 26px; height: 26px; color: var(--rod); margin-top: 1px; }
.alert a { color: var(--rod-mork); font-weight: 700; }

.band-gra { background: var(--gra); }
.tenant-box { display: flex; flex-direction: column; gap: 14px; padding: 16px 20px; border-radius: var(--radius); background: var(--gra); }
.tenant-box .check span { line-height: 1.4; }
.tenant-box [hidden] { display: none; }
.field-hint { display: block; margin-top: 6px; font-size: 14px; color: var(--tekst-3); }
.estates-about { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.estates-about p { margin: 18px 0 0; font-size: 18px; line-height: 1.65; color: var(--tekst-2); }
.checklist { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px 32px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--rod); margin-top: 3px; }
.map-band { background: var(--gra); }
.map-band iframe { display: block; width: 100%; height: clamp(360px, 45vw, 520px); border: 0; }
/* Innebygd kart (Leaflet) */
.estate-map {
	height: clamp(340px, 42vw, 520px); margin: 8px 0 36px; border-radius: var(--radius-lg); overflow: hidden;
	background: var(--gra); z-index: 0; font-family: var(--sans);
}
.estate-map-front { margin: 36px 0 24px; }
.estate-map .leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.06); }
.estate-map .leaflet-control-attribution { font-size: 11px; background: rgba(255, 255, 255, .85); }
.estate-map .leaflet-control-zoom a { color: var(--sort); }
.map-pin { background: none; border: 0; }
.map-pin span {
	display: block; width: 30px; height: 30px; background: var(--rod); border: 3px solid var(--hvit);
	border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
	transition: background .15s;
}
.map-pin:hover span, .map-pin:focus span { background: var(--rod-mork); }
.map-pin:focus { outline: none; }
.map-pin:focus-visible span { box-shadow: 0 0 0 3px var(--hvit), 0 0 0 6px var(--rod); }
.map-popup-wrap .leaflet-popup-content-wrapper { padding: 0; border-radius: 14px; overflow: hidden; }
.map-popup-wrap .leaflet-popup-content { margin: 0; width: 240px !important; font-family: var(--sans); }
.map-popup, .estate-map a.map-popup { display: block; color: var(--sort); text-decoration: none; }
.map-popup img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.map-popup-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.map-popup-eyebrow { color: var(--rod); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.map-popup strong { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.2; }
.map-popup-text { font-size: 13px; color: var(--tekst-3); }
.map-popup-link { margin-top: 4px; color: var(--rod); font-size: 14px; font-weight: 700; }
.map-popup-wrap a.leaflet-popup-close-button { color: var(--hvit); background: rgba(0, 0, 0, .45); border-radius: 50%; width: 26px; height: 26px; top: 8px; right: 8px; line-height: 24px; font-size: 18px; }

/* Eiendom */
.estate-head { padding-top: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 22px; }
.estate-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(24px, 3vw, 36px); }
.estate-title-block { display: flex; flex-direction: column; gap: 8px; }
.estate-hero > .media-img, .estate-hero > .media-placeholder { aspect-ratio: 16 / 9; width: 100%; max-height: min(700px, 78vh); object-fit: cover; }
.hero-hel { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: min(700px, 78vh); border-radius: 16px; overflow: hidden; background: var(--sort); }
.hero-hel > .media-img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.estate-gallery { padding-bottom: clamp(56px, 7vw, 104px); }
.estate-gallery .section-head { margin-bottom: 18px; }

/* Slideshow på eiendommene */
.slideshow { position: relative; }
.slides {
	display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
	scrollbar-width: none; border-radius: 16px; outline-offset: 4px;
	width: 100%; aspect-ratio: 3 / 2; max-height: min(720px, 80vh); background: var(--sort);
}
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline: 3px solid var(--rod); }
.slide { position: relative; flex: 0 0 100%; height: 100%; margin: 0; overflow: hidden; scroll-snap-align: start; }
/* Hele bildet vises; plassen rundt fylles med en uskarp, mørknet kopi. */
.slide-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(28px) brightness(.7); }
.slide .media-img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.slide figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 190px 18px 20px; color: var(--hvit); font-size: 14px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}
.slide-btn {
	position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%;
	display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--sort); cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .18); transition: background .15s, color .15s;
}
.slide-btn:hover { background: var(--rod); color: var(--hvit); }
.slide-btn:focus-visible, .slide-dot:focus-visible, .slide-pause:focus-visible { outline: 3px solid var(--hvit); outline-offset: 2px; box-shadow: 0 0 0 6px var(--rod); }
.slide-btn .icon { width: 22px; height: 22px; }
.slide-prev { left: 14px; }
.slide-prev .icon { transform: rotate(180deg); }
.slide-next { right: 14px; }
.slide-bar { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; }
.slide-dots { display: flex; align-items: center; padding: 0 6px; border-radius: 999px; background: rgba(0, 0, 0, .4); }
.slide-dot { width: 24px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.slide-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .6); transition: width .2s, background .2s; }
.slide-dot[aria-current="true"]::before { width: 18px; background: var(--hvit); }
.slide-pause { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .4); cursor: pointer; display: grid; place-items: center; }
.slide-pause-icon { width: 10px; height: 12px; border-left: 3px solid var(--hvit); border-right: 3px solid var(--hvit); }
.slide-pause[aria-pressed="true"] .slide-pause-icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--hvit); }
@media (max-width: 640px) {
	.slide-btn { width: 40px; height: 40px; margin-top: -20px; }
	.slide-prev { left: 8px; }
	.slide-next { right: 8px; }
	.slide-bar { right: 8px; bottom: 8px; }
	.slide-dot { width: 18px; }
	.slide figcaption { padding: 36px 14px 52px; font-size: 13px; }
	.slides { aspect-ratio: 4 / 3; }
}
@media print { .slide-btn, .slide-bar { display: none; } .slide:not(:first-child) { display: none; } }

/* Nyhetsoversikt og innlegg */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 40px 24px; }
.post-card { display: flex; flex-direction: column; gap: 14px; color: var(--sort); text-decoration: none; }
.post-media { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--gra-2); }
.post-body { display: flex; flex-direction: column; gap: 10px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--tekst-3); }
.post-meta .tag { text-transform: none; }
.post-title { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.post-card:hover .post-title { color: var(--rod); }
.post-excerpt { color: var(--tekst-2); }
.post-card-lead { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 0; background: var(--gra); border-radius: var(--radius-lg); overflow: hidden; }
.post-card-lead .post-media { border-radius: 0; aspect-ratio: auto; min-height: 300px; }
.post-card-lead .post-body { padding: clamp(24px, 4vw, 48px); justify-content: center; }
.post-card-lead .post-title { font-size: clamp(28px, 3vw, 38px); }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--linje); color: var(--sort); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--rod); border-color: var(--rod); color: var(--hvit); }

.article-head { max-width: 860px; padding-top: clamp(32px, 5vw, 64px); padding-bottom: 32px; display: flex; flex-direction: column; gap: 18px; }
.back-link { font-weight: 700; font-size: 15px; text-decoration: none; }
.article-title { font-size: clamp(30px, 5vw, 64px); line-height: 1.04; padding-left: clamp(16px, 2vw, 26px); border-left: 8px solid var(--rod); }
.article-image { max-width: 1140px; margin: 0 auto; }
.article-image .media-img { border-radius: var(--radius-lg); max-height: 680px; }
.article-image figcaption { font-size: 14px; color: var(--tekst-3); margin-top: 10px; }
.article-body { max-width: 860px; padding-top: 40px; padding-bottom: clamp(56px, 7vw, 96px); }

/* ---------- Innhold fra redigeringsverktøyet ---------- */
.entry-content { font-size: 18px; line-height: 1.7; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin-top: 1.6em; }
.entry-content h3 { font-size: 20px; margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content img { border-radius: 14px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 14px; color: var(--tekst-3); }
/* Samme avstand som WordPress regner kolonnebredden ut fra, ellers får galleriet én kolonne for lite. */
.entry-content .wp-block-gallery.has-nested-images { gap: var(--wp--style--unstable-gallery-gap, 16px); }
.entry-content .wp-block-image img, .entry-content .wp-block-gallery img { border-radius: 14px; }
.entry-content .has-rod-lys-background-color, .entry-content .is-style-merknad {
	padding: 18px 22px; border-radius: 0 14px 14px 0; border-left: 6px solid var(--rod); background: var(--rod-lys); color: var(--rod-mork); font-size: 17px;
}
.has-rod-color { color: var(--rod); }
.has-rod-background-color { background-color: var(--rod); }
.has-rod-mork-background-color { background-color: var(--rod-mork); }
.has-rod-lys-background-color { background-color: var(--rod-lys); }
.has-sort-background-color { background-color: var(--sort); }
.has-gra-background-color { background-color: var(--gra); }
.has-hvit-color { color: var(--hvit); }

/* PDF-er og filer */
.entry-content .wp-block-file {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
	padding: 14px 18px; border-radius: 14px; background: var(--gra); margin-top: 10px; font-size: 16px;
}
.entry-content .wp-block-file > a:first-child { color: var(--sort); font-weight: 600; text-decoration: none; }
.entry-content .wp-block-file > a:first-child::before {
	content: "PDF"; display: inline-block; margin-right: 12px; padding: 2px 8px; border-radius: 6px;
	background: var(--rod); color: var(--hvit); font-size: 11px; font-weight: 700; letter-spacing: .04em; vertical-align: 2px;
}
.entry-content .wp-block-file .wp-block-file__button {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
	background: var(--hvit); color: var(--rod); font-weight: 700; font-size: 14px; text-decoration: none; border: 1.5px solid var(--rod);
}
.entry-content .wp-block-file .wp-block-file__button:hover { background: var(--rod); color: var(--hvit); }
/* Liste med dokumenter (lenkeliste med klassen «dokumenter») */
.entry-content ul.dokumenter { list-style: none; padding: 0; display: grid; gap: 10px; }
.entry-content ul.dokumenter li { margin: 0; }
.entry-content ul.dokumenter a {
	display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: var(--gra);
	color: var(--sort); font-weight: 600; font-size: 16px; text-decoration: none; transition: background .15s;
}
.entry-content ul.dokumenter a::before {
	content: "PDF"; flex: none; padding: 2px 8px; border-radius: 6px; background: var(--rod); color: var(--hvit);
	font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.entry-content ul.dokumenter a::after { content: "Last ned"; margin-left: auto; flex: none; color: var(--rod); font-size: 14px; font-weight: 700; }
.entry-content ul.dokumenter a:hover { background: var(--rod-lys); }

/* Knapper fra redigeringsverktøyet */
.entry-content .wp-block-button__link { border-radius: 999px; background: var(--rod); color: var(--hvit); font-weight: 700; padding: 14px 24px; text-decoration: none; }
.entry-content .wp-block-button__link:hover { background: var(--rod-mork); color: var(--hvit); }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--sort); border: 1.5px solid currentColor; }

/* Saker som kort – samme uttrykk som Referanser */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.news-card {
	display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
	background: var(--gra); color: var(--sort); text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.news-card:hover { color: var(--sort); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .08); }
.news-card-media { display: block; aspect-ratio: 4 / 3; background: var(--gra-2); }
.news-card-media .media-img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.news-card-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 26px 28px 28px; }
.news-card-title { font-family: var(--serif); font-size: 24px; line-height: 1.22; }
.news-card:not(.has-image) .news-card-title { font-size: 28px; }
.news-card-text { color: var(--tekst-2); font-size: 16px; line-height: 1.55; }
.news-card-more { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 15px; color: var(--rod); }
.news-card:hover .news-card-title { color: var(--rod); }
.news-band .news-card { background: var(--hvit); }
.news-grid > .news-card:nth-child(5n+1) { background: var(--rod); color: var(--hvit); }
.news-grid > .news-card:nth-child(5n+1) .news-card-text,
.news-grid > .news-card:nth-child(5n+1) .post-meta,
.news-grid > .news-card:nth-child(5n+1) .news-card-more { color: rgba(255, 255, 255, .85); }
.news-grid > .news-card:nth-child(5n+1) .tag { background: rgba(255, 255, 255, .16); color: var(--hvit); }
.news-grid > .news-card:nth-child(5n+1):hover .news-card-title { color: var(--hvit); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (prefers-reduced-motion: reduce) { .news-card { transition: none; } .news-card:hover { transform: none; } }

/* Referanser som kort */
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; font-size: 18px; }
.quotes > * + * { margin-top: 0; }
.quotes > :not(.wp-block-quote) { grid-column: 1 / -1; }
.quotes .wp-block-quote {
	margin: 0; padding: 30px 28px; border-radius: var(--radius); background: var(--gra); border: 0;
	display: flex; flex-direction: column; justify-content: flex-start; gap: 18px; position: relative;
}
.quotes .wp-block-quote::before { content: "“"; font-family: var(--serif); font-size: 72px; line-height: .6; color: #C9A9A7; }
.quotes .wp-block-quote:nth-of-type(5n+1) { background: var(--rod); color: var(--hvit); }
.quotes .wp-block-quote:nth-of-type(5n+1)::before { color: #B9726E; }
.quotes .wp-block-quote p { font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.quotes .wp-block-quote cite { font-style: normal; font-weight: 700; font-size: 15px; margin-top: auto; }
/* Google-anmeldelser: fem stjerner i stedet for anførselstegnet. */
.quotes .wp-block-quote.is-style-google::before {
	content: "★★★★★"; content: "★★★★★" / "5 av 5 stjerner";
	font-family: var(--sans, inherit); font-size: 20px; line-height: 1; letter-spacing: 3px; color: #E3A008;
}
.quotes .wp-block-quote.is-style-google:nth-of-type(5n+1)::before { color: #F6C54E; }

/* Tabeller fra redigeringsverktøyet */
.entry-content .wp-block-table { margin-left: 0; margin-right: 0; overflow-x: auto; }
.entry-content .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; border: 0; }
.entry-content .wp-block-table th, .entry-content .wp-block-table td, .entry-content .wp-block-table thead { border: 0; }
.entry-content .wp-block-table th { text-align: left; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tekst-3); padding: 0 14px 10px 0; border-bottom: 2px solid var(--sort); }
.entry-content .wp-block-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid #E4E1DC; vertical-align: top; }
.entry-content .wp-block-table td:first-child { font-weight: 600; }
.entry-content .tabell-faktura td:last-child { color: var(--tekst-2, inherit); }

/* ---------- Skjema ---------- */
.kform { display: flex; flex-direction: column; gap: 36px; }
.kform fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kform legend { padding: 0 0 12px; font-family: var(--serif); font-size: 26px; font-weight: 400; display: flex; align-items: center; gap: 12px; }
.kform legend .step-no { background: var(--rod-lys); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.req { color: var(--rod); }
.field-label { display: block; }
.kform input[type="text"], .kform input[type="email"], .kform input[type="tel"], .kform select, .kform textarea {
	width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid #BDBAB4; border-radius: 12px;
	background: var(--hvit); font: inherit; font-weight: 400; font-size: 17px; color: var(--sort);
}
.kform textarea { padding: 12px 14px; resize: vertical; min-height: 140px; }
.kform input:focus, .kform select:focus, .kform textarea:focus { outline: none; border-color: var(--rod); box-shadow: 0 0 0 3px var(--rod-lys); }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--rod); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
	display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px;
	border: 1.5px solid var(--rod); background: var(--hvit); color: var(--sort); font-weight: 600; font-size: 15px;
}
.chip input:checked + span { background: var(--rod); color: var(--hvit); }
.chip input:focus-visible + span { outline: 3px solid var(--rod); outline-offset: 3px; }
.upload {
	display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px; text-align: center;
	border: 1.5px dashed #9A9A94; border-radius: 16px; background: #FAFAF9; cursor: pointer;
}
.upload .icon { width: 32px; height: 32px; color: var(--rod); }
.upload-title { font-weight: 700; }
.upload-help { font-size: 14px; color: var(--tekst-3); }
.upload { position: relative; }
.upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-btn { margin-top: 8px; display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--rod); color: var(--rod); font-weight: 700; font-size: 14px; background: var(--hvit); }
.upload:hover .upload-btn { background: var(--rod); color: var(--hvit); }
.upload:focus-within { outline: 3px solid var(--rod); outline-offset: 3px; }
.form-foot { display: flex; flex-direction: column; gap: 16px; padding-top: 20px; border-top: 1px solid var(--linje); }
.form-foot .btn { align-self: flex-start; }
.form-notice { padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.form-notice-error { background: var(--rod-lys); color: var(--rod-mork); border-left: 6px solid var(--rod); }
.form-done { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--gra); border-left: 6px solid var(--rod); }
.form-done .icon { width: 48px; height: 48px; color: var(--rod); }
.form-done h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.4vw, 40px); }
.form-done .btn { align-self: flex-start; }
.form-intro { margin-bottom: 28px; }

/* ---------- Bunnfelt ---------- */
.site-footer { background: var(--rod); color: var(--hvit); }
.footer-inner { padding-top: clamp(48px, 6vw, 80px); padding-bottom: 28px; display: flex; flex-direction: column; gap: 36px; }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.footer-contact p { margin: 0; }
.footer-address { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 5vw, 72px); line-height: 1; }
.footer-meta { margin-top: 8px !important; font-size: 15px; color: var(--rosa); }
.footer-links { margin-top: 10px !important; display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.footer-links a, .footer-bottom a { color: var(--hvit); }
.footer-logo .brand-logo { height: 76px; width: auto; }
.footer-bottom { border-top: 1px solid #8A3A37; padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--rosa); }
.footer-bottom a { color: var(--rosa); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ---------- Mindre skjermer ---------- */
@media (max-width: 599px) {
	:root { --pad: 18px; }
	body { font-size: 16px; }
	.hero { padding-top: 28px; }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.news-date { flex-basis: 100%; }
	.estate-title, .news-title, .post-title { font-size: 22px; }
	.footer-logo .brand-logo { height: 60px; }
	.entry-content { font-size: 17px; }
	.btn-lg { min-height: 50px; padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .site-footer, .nav-mobile, .help-cards, .fault-banner { display: none !important; }
	.page-hero { background: none; color: var(--sort); }
}

/* Skjul delings-, lik- og relaterte-innlegg-bokser fra WordPress.com/Jetpack hvis de likevel dukker opp. */
.sharedaddy, .sd-sharing-enabled, .jp-relatedposts, #jp-relatedposts, .wpl-likebox, .sharing-hidden { display: none !important; }
