/*
 * Grieg Connect: site CSS that is not built with Tailwind.
 *
 * Moved here from Appearance → Customize → Additional CSS so it is versioned with
 * the theme. Loaded after css/app.css on the site and in the block editor.
 * The Danish language-switcher hide (.lang-item-dk) stays in the Customizer on purpose.
 */

/* ------------------------------------------------------------------
 * Text content: posts and "Page with container" template
 * ------------------------------------------------------------------ */

.page-template-template-page-with-container .entry-content h1,
.page-template-template-page-with-container .entry-content h2,
.page-template-template-page-with-container .entry-content h3,
.page-template-template-page-with-container .entry-content h4,
.page-template-template-page-with-container .entry-content p {
	margin-top: 1.25rem;
}

article .entry-content p {
	margin-top: 1.25rem;
	margin-bottom: 0;
}

.wp-block-heading {
	margin-top: 1.25em;
	margin-bottom: 0;
	padding-bottom: 0;
}

.page-template-template-page-with-container .entry-content ul {
	list-style: circle;
	padding-left: 1.25rem;
}

/* Was "list-style: numbers" (not valid CSS, so ignored); decimal is what was meant. */
.page-template-template-page-with-container .entry-content ol {
	list-style: decimal;
	padding-left: 1.25rem;
}

article .entry-content ul {
	margin-left: 1.25rem;
}

article .entry-content ul li {
	list-style: circle;
}

.entry-content .wp-block-image {
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
}

.wp-block-image :where(figcaption) {
	text-align: center;
	font-size: 0.85rem;
}

/* ------------------------------------------------------------------
 * Reusable helper classes (add under Block → Advanced → Additional CSS class)
 * ------------------------------------------------------------------ */

.list-changelog li {
	margin-top: 1.25rem;
}

.list-changelog ul {
	margin-left: 1.25rem;
}

.list-changelog ul li {
	list-style: circle;
	margin-top: 0.5rem;
}

.bi-list {
	margin-top: 10px;
	padding-inline-start: 20px;
}

.bi-list li {
	list-style: disc;
}

@media (max-width: 568px) {
	.business-details {
		display: block;
		margin-top: 0.3rem;
	}
}

/* ------------------------------------------------------------------
 * Layout
 * ------------------------------------------------------------------ */

@media (min-width: 1080px) and (max-width: 1279px) {
	.hero-content {
		padding-right: 100px;
	}
}

@media (min-width: 1680px) {
	.hero-text h1 {
		font-size: 5rem;
	}
}

/* Long hero titles (58+ characters, any page and language): smaller so they fit in
 * 2–4 lines. The class is added in template-parts/hero-with-background.php. */
@media (min-width: 768px) {
	.hero-text.hero-title--long h1 {
		font-size: 3.5rem;
	}
}

@media (min-width: 1680px) {
	.hero-text.hero-title--long h1 {
		font-size: 3.8rem;
	}
}

/* Swedish and Finnish: long compound words, so hero titles (both hero types) are smaller. */
@media (min-width: 768px) {
	:lang(sv) .hero-title,
	:lang(fi) .hero-title {
		font-size: 3.5rem;
	}
}

@media (min-width: 1680px) {
	:lang(sv) .hero-title,
	:lang(fi) .hero-title {
		font-size: 3.8rem;
	}
}

@media (min-width: 768px) and (max-width: 1280px) {
	.main-nav li {
		padding: 1.5rem;
	}
}

.wp-block-griegconnect-key-features:first-child {
	padding-top: 2rem;
}

/* Product cards grid (was .wp-block-griegconnect-modules-display-grid before the Modules migration). */
.wp-block-griegconnect-product-cards {
	padding-bottom: 3rem;
}

:root {
	--wp--preset--shadow--deep: 10px 8px 50px rgba(0, 0, 0, 0.1);
}

/* ------------------------------------------------------------------
 * Gravity Forms
 * ------------------------------------------------------------------ */

@media (min-width: 960px) {
	.gfield--width-half:nth-child(2n) {
		padding-left: 0;
		padding-right: 1rem;
	}
}

.gform_title {
	margin-bottom: 1rem;
}

.gfield_consent_description {
	margin-top: 0.5rem;
	background: #f5f5f7;
	padding: 0.5rem;
}

.gfield_consent_description a {
	text-decoration: underline;
}

/* ------------------------------------------------------------------
 * Page / post specific (kept as they were; see suggestions in each comment)
 * ------------------------------------------------------------------ */

/* Anchors on specific pages. Suggestion: a reusable class (e.g. "no-padding-bottom",
 * "list-inside") added in Block → Advanced instead of page anchors. */
#fordeler > div.sm\:grid.gap-5.md\:gap-40.mb-8.md\:mb-20 > div {
	gap: 3rem;
}

#fordeler {
	padding-bottom: 0;
}

#port-rental-images > div {
	margin-bottom: 3rem;
}

#hvordan-komme-i-gang ul {
	margin-top: 2rem;
}

#hvordan-komme-i-gang ul li {
	list-style: inside;
}

#user-roles {
	padding-top: 0 !important;
}

