/* GENERAL */
body {
	background: #f7f7f7;
	font-family: Roboto, Arial, sans-serif;
}

/* HERO */
.hero {
	height: 80vh;
	background: url('https://via.placeholder.com/1600x900') center/cover no-repeat;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	color: white;
}

.hero h1 {
	font-size: 3rem;
	text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero p {
	margin: 10px 0;
	font-size: 1.2rem;
}

.hero button {
	padding: 12px 24px;
	background: #ff6600;
	border: none;
	color: white;
	cursor: pointer;
	border-radius: 6px;
}

/* POST GRID */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 25px;
	padding: 50px 10%;
}

.post-card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 15px rgba(0,0,0,0.1);
	transition: .3s;
}

.post-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.post-card img {
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.post-card .content {
	padding: 18px;
}

.post-card .category {
	color: #ff6600;
	font-weight: bold;
	font-size: .8rem;
}

/* CAROUSEL */
.carousel {
	padding: 50px 10%;
	overflow: hidden;
}

.carousel-track {
	display: flex;
	gap: 20px;
}

.carousel-item {
	min-width: 300px;
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.carousel-item img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.carousel-item h4 {
	padding: 12px;
}

/* INTRO SECTION */
.intro-section {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	padding: 50px 10%;
	gap: 20px;
}

.intro-card {
	background: white;
	padding: 25px;
	border-radius: 12px;
	text-align: center;
	flex: 1 1 250px;
	box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* FOOTER */
footer {
	background: #222;
	color: white;
	padding: 40px 10%;
}
/* UTVID INNHOLDSBREDDEN I AFTERLIGHT */

@media (min-width: 1024px) {
    .site-content,
    .content-area,
    .site-main,
    .entry-content {
        max-width: 1250px !important;
        width: 100% !important;
    }
}


/* MMA GPS-side leseprøve, 15.11.2026 */
body.page-id-14871 #main .entry-content,
body.page-id-14871 #main .comments-area {
  background: #fbfaf6 !important;
  color: #27343b !important;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.20);
  box-sizing: border-box;
  padding: clamp(24px, 3.5vw, 44px);
}
body.page-id-14871 #main .entry-content {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
body.page-id-14871 #main .entry-content h1,
body.page-id-14871 #main .entry-content h2,
body.page-id-14871 #main .entry-content h3,
body.page-id-14871 #main .entry-content h4,
body.page-id-14871 #main .entry-content h5,
body.page-id-14871 #main .entry-content h6,
body.page-id-14871 #main .comments-area h2,
body.page-id-14871 #main .comments-area h3 { color: #263a45 !important; }
body.page-id-14871 #main .entry-content a:not(.wp-block-button__link):not(.sd-button),
body.page-id-14871 #main .comments-area a:not(.sd-button) {
  color: #17617c !important;
  text-underline-offset: 3px;
}
body.page-id-14871 #main .entry-content a:not(.wp-block-button__link):not(.sd-button):hover,
body.page-id-14871 #main .comments-area a:not(.sd-button):hover { color: #0a4159 !important; }
body.page-id-14871 #main .entry-content figcaption,
body.page-id-14871 #main .entry-content .wp-caption-text { color: #586971 !important; }
@media (max-width:600px) {
  body.page-id-14871 #main .entry-content,
  body.page-id-14871 #main .comments-area {
    padding: 22px 18px;
    border-radius: 7px;
  }
}


/* MMA GPS-artikler: lesbar tekst, 15.11.2026 */
body.single-post #main article.category-gps .entry-content {
  background: #fbfaf6 !important;
  color: #22282d !important;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.20);
  box-sizing: border-box;
  padding: clamp(24px,3.5vw,44px);
  max-width: 960px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.single-post #main article.category-gps .entry-content p,
body.single-post #main article.category-gps .entry-content li,
body.single-post #main article.category-gps .entry-content blockquote,
body.single-post #main article.category-gps .entry-content h2,
body.single-post #main article.category-gps .entry-content h3,
body.single-post #main article.category-gps .entry-content h4,
body.single-post #main article.category-gps .entry-content h5,
body.single-post #main article.category-gps .entry-content h6 {
  color: #22282d !important;
}
body.single-post #main article.category-gps .entry-content a:not(.wp-block-button__link):not(.sd-button) {
  color: #17617c !important;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
body.single-post #main article.category-gps .entry-content a:not(.wp-block-button__link):not(.sd-button):hover { color: #0a4159 !important; }
body.single-post #main article.category-gps .entry-content figcaption,
body.single-post #main article.category-gps .entry-content .wp-caption-text { color: #586971 !important; }
@media (max-width:600px) {
  body.single-post #main article.category-gps .entry-content { padding: 22px 18px; border-radius: 7px; }
}


/* MMA: lesbarhet på artikler og temasider, 15.11.2026.
   Forsiden og kjøre-/hviletidskalkulatoren (side 16120) er unntatt. */
body.single-post #main .entry-content {
  background: #fbfaf6 !important;
  color: #22282d !important;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.20);
  box-sizing: border-box;
  padding: clamp(24px, 3.5vw, 44px);
  max-width: 960px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.page:not(.home):not(.page-id-16120) #main .entry-content {
  background: #fbfaf6 !important;
  color: #22282d !important;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.20);
  box-sizing: border-box;
  padding: clamp(24px, 3.5vw, 44px);
  max-width: 960px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.single-post #main .entry-content p,
body.single-post #main .entry-content li,
body.single-post #main .entry-content h2,
body.single-post #main .entry-content h3,
body.single-post #main .entry-content h4,
body.single-post #main .entry-content h5,
body.single-post #main .entry-content h6,
body.single-post #main .entry-content blockquote,
body.page:not(.home):not(.page-id-16120) #main .entry-content p,
body.page:not(.home):not(.page-id-16120) #main .entry-content li,
body.page:not(.home):not(.page-id-16120) #main .entry-content h2,
body.page:not(.home):not(.page-id-16120) #main .entry-content h3,
body.page:not(.home):not(.page-id-16120) #main .entry-content h4,
body.page:not(.home):not(.page-id-16120) #main .entry-content h5,
body.page:not(.home):not(.page-id-16120) #main .entry-content h6,
body.page:not(.home):not(.page-id-16120) #main .entry-content blockquote {
  color: #22282d !important;
}
body.single-post #main .entry-content a:not(.wp-block-button__link):not(.sd-button),
body.page:not(.home):not(.page-id-16120) #main .entry-content a:not(.wp-block-button__link):not(.sd-button) {
  color: #17617c !important;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
body.single-post #main .entry-content a:not(.wp-block-button__link):not(.sd-button):hover,
body.page:not(.home):not(.page-id-16120) #main .entry-content a:not(.wp-block-button__link):not(.sd-button):hover { color: #0a4159 !important; }
body.single-post #main .entry-content figcaption,
body.single-post #main .entry-content .wp-caption-text,
body.page:not(.home):not(.page-id-16120) #main .entry-content figcaption,
body.page:not(.home):not(.page-id-16120) #main .entry-content .wp-caption-text { color: #586971 !important; }
@media (max-width: 600px) {
  body.single-post #main .entry-content,
  body.page:not(.home):not(.page-id-16120) #main .entry-content {
    padding: 22px 18px;
    border-radius: 7px;
  }
}


/* MMA: kategorier, emneknagger, arkiver, søk og andre innleggsoversikter; forsiden unntatt. */
body.archive:not(.home) #main article.hentry {background:#fbfaf6!important;color:#22282d!important;box-sizing:border-box;width:100%!important;max-width:960px!important;margin:0 auto 48px!important;padding:clamp(24px,3.5vw,44px);border-radius:10px;box-shadow:0 8px 28px rgba(0,0,0,.20);}
body.search:not(.home) #main article.hentry {background:#fbfaf6!important;color:#22282d!important;box-sizing:border-box;width:100%!important;max-width:960px!important;margin:0 auto 48px!important;padding:clamp(24px,3.5vw,44px);border-radius:10px;box-shadow:0 8px 28px rgba(0,0,0,.20);}
body.blog:not(.home) #main article.hentry {background:#fbfaf6!important;color:#22282d!important;box-sizing:border-box;width:100%!important;max-width:960px!important;margin:0 auto 48px!important;padding:clamp(24px,3.5vw,44px);border-radius:10px;box-shadow:0 8px 28px rgba(0,0,0,.20);}
body.archive:not(.home) #main article.hentry .entry-header,
body.archive:not(.home) #main article.hentry .entry-content,
body.archive:not(.home) #main article.hentry .entry-footer,
body.archive:not(.home) #main article.hentry p,
body.archive:not(.home) #main article.hentry li,
body.archive:not(.home) #main article.hentry h2,
body.archive:not(.home) #main article.hentry h3,
body.archive:not(.home) #main article.hentry h4,
body.archive:not(.home) #main article.hentry figcaption,
body.archive:not(.home) #main article.hentry .wp-caption-text,
body.search:not(.home) #main article.hentry .entry-header,
body.search:not(.home) #main article.hentry .entry-content,
body.search:not(.home) #main article.hentry .entry-footer,
body.search:not(.home) #main article.hentry p,
body.search:not(.home) #main article.hentry li,
body.search:not(.home) #main article.hentry h2,
body.search:not(.home) #main article.hentry h3,
body.search:not(.home) #main article.hentry h4,
body.search:not(.home) #main article.hentry figcaption,
body.search:not(.home) #main article.hentry .wp-caption-text,
body.blog:not(.home) #main article.hentry .entry-header,
body.blog:not(.home) #main article.hentry .entry-content,
body.blog:not(.home) #main article.hentry .entry-footer,
body.blog:not(.home) #main article.hentry p,
body.blog:not(.home) #main article.hentry li,
body.blog:not(.home) #main article.hentry h2,
body.blog:not(.home) #main article.hentry h3,
body.blog:not(.home) #main article.hentry h4,
body.blog:not(.home) #main article.hentry figcaption,
body.blog:not(.home) #main article.hentry .wp-caption-text {color:#22282d!important;}
body.archive:not(.home) #main article.hentry a:not(.wp-block-button__link):not(.sd-button),
body.search:not(.home) #main article.hentry a:not(.wp-block-button__link):not(.sd-button),
body.blog:not(.home) #main article.hentry a:not(.wp-block-button__link):not(.sd-button) {color:#17617c!important;overflow-wrap:anywhere;}
body.archive:not(.home) #main article.hentry .entry-header .entry-title a,
body.search:not(.home) #main article.hentry .entry-header .entry-title a,
body.blog:not(.home) #main article.hentry .entry-header .entry-title a {color:#22282d!important;}
@media (max-width:600px) {
  body.archive:not(.home) #main article.hentry,
  body.search:not(.home) #main article.hentry,
  body.blog:not(.home) #main article.hentry {padding:22px 18px;border-radius:7px;}
}

/* KHV: Skjul gammel, detaljert arbeidstidsforklaring for sluttbruker. */
#kh41-app #kh427-work { display: none !important; }