/*
 * Info page templates (Bricks 1179, 1248, 1261, 1423, 1475 and the documents section on 553 pages).
 * Page = acf/documents block(s) + core/group "info-section info-section--<page>" around the page text.
 */

/* Sections own their spacing: drop the generic .page-content padding on the flush side (see inc/features/info.php). */
.ju-flush-top .page-content { padding-top: 0; }
.ju-flush-bottom .page-content { padding-bottom: 0; }

.page-content > .ju-block.documents,
.page-content > .wp-block-group.info-section {
	max-width: var(--site-width);
	margin-top: 0;
}

/* Narrow centred text column inside the content container. */
.page-content > .wp-block-group.info-section {
	margin-inline: auto;
}

/* 1179 Par uzņēmumu: 50% / 45% / 90% column. */
.page-content > .info-section--about {
	width: 50%;
	padding-top: 2.4rem;
}

/* 1261 Iesniegumu paraugi: text under the documents grid. */
/* Samples/Tarifi: % of the Bricks 1440 container, not of the full-width section. */
.page-content > .info-section--samples {
	width: calc(min(100%, var(--site-width)) * .6);
	padding-bottom: 10.4rem;
}

/* 1423 Tarifi */
.page-content > .info-section--tariffs {
	width: calc(min(100%, var(--site-width)) * .5);
	padding: 2.6rem 0 10.4rem;
}

/* 1475 Skaitītāju rādījumi: centred intro + WS Form. */
.page-content > .info-section--readings {
	padding: 3.6rem 0 var(--section-space-m);
}
.info-section--readings > *:not(.readings-form),
.info-section--readings > .wp-block-group__inner-container > *:not(.readings-form) {
	text-align: center;
}
.readings-form { display: flex; justify-content: center; width: 100%; }

/* Page-specific content classes (Advanced Scripts "Global CSS"). */
.entry-content .speical-title {
	margin: 0;
	padding-top: 6.4rem;
	padding-bottom: 2rem;
}
.entry-content .before-table-p { padding-bottom: 0 !important; }
.info-section--samples h2 { padding: 0 !important; }
.info-section--samples .wp-block-list { margin: -1rem; }
.info-section--samples .wp-block-list li:last-child { padding-bottom: 1.6rem; }
.entry-content .reeding-heading {
	padding-bottom: 1.7rem !important;
	font-size: 2.8rem !important;
}
.entry-content .reeding-p { color: var(--base) !important; }

.readings-form__empty {
	padding: 2.4rem;
	border: 1px dashed var(--base-light);
	border-radius: var(--radius-s);
	font-size: 1.4rem;
	color: var(--muted);
}

@media (max-width: 991px) {
	.page-content > .info-section--about { width: 45%; }
	.page-content > .info-section--samples { width: 80%; }
}
@media (max-width: 767px) {
	.page-content > .info-section--about {
		width: 90%;
		padding-bottom: 5rem;
	}
	.page-content > .info-section--samples { width: 90%; }
	.page-content > .info-section--tariffs { width: 70%; }
	.entry-content .reeding-heading { font-size: 2rem !important; }
}
@media (max-width: 478px) {
	.page-content > .info-section--samples,
	.page-content > .info-section--tariffs { width: 100%; }
}
